- 最新
- 最多得票
- 最多評論
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"
}
}
}
相關內容
- AWS 官方已更新 3 年前
- AWS 官方已更新 1 年前