- Le plus récent
- Le plus de votes
- La plupart des commentaires
Hi Ikkysleepy,
If one of the actors in your system is constrained to PHP only, I recommend checking out the device shadow service of AWS IoT. Your other actors can publish messages to a shadow topic which gets persisted by AWS IoT. It may not be ideal, though your PHP actor can poll the shadow value over HTTP to check for changes.
http://docs.aws.amazon.com/iot/latest/developerguide/iot-thing-shadows.html
Ryan
Thanks for the response. This solution might work if the Shadow can contain custom fields and values and not just the current state. Do you know if this is possible? It looks like you can do long polling using php:
You can store any arbitrary key:value pairs in the shadow document, just not at the root level where the "state" key is defined. You can store new values in either the "state.desired" or "state.reported" object space.
{
"state": {
"desired": {
"myKey": "myValue"
}
}
}
Contenus pertinents
- demandé il y a 2 mois
- demandé il y a un an
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 6 mois