aREST icon indicating copy to clipboard operation
aREST copied to clipboard

How do I subscribe to a device topic on aREST cloud?

Open rohit-gandhe opened this issue 9 years ago • 1 comments

This may have been answered somewhere but I couldn't find it. As far as I understand, using aRest cloud, we can make a device into a subscriber. This allows us to send messages to the device by calling /<device_id>//.

However, I could not find how to become a subscriber on the topic that was created so that I can get messages posted by the device. For example, how do I get temperature readings from the topic the device created and send a notification (if required).

Thanks!!

rohit-gandhe avatar Oct 26 '16 21:10 rohit-gandhe

Hey! That's not supported yet, but the plan is to add in the future a publish() function in aREST so you can indeed access the messages published by the devices on the cloud server.

marcoschwartz avatar Oct 27 '16 07:10 marcoschwartz