mc-Platform => MQTT => Topic started by: Artanicus on June 07, 2016, 04:28:05 pm

Title: Topics?
Post by: Artanicus on June 07, 2016, 04:28:05 pm
I can't seem to find anywhere what topics should I subscribe to? Running Mosquitto.
Title: Re: Topics?
Post by: kristofferis on June 07, 2016, 04:40:54 pm
As default mcGateway sends out beacons from the modules on mcThings/beacon so if you subscribe to mcThings/beacon/# then you will receive those messages.
But I would guess that you gonna publish your own messages maybe like this mcThings/Temperature/Kitchen and mcThings/Temperature/Bedroom so then it would be better to subscribe to mcThings/# to fetch them all. Or just # to get all messages, depends on the number of messages arrives at the broker you use.

Please tell me what you want to accomplish and then I could post a better answer based on your needs.
Title: Re: Topics?
Post by: mc-Abe on June 07, 2016, 04:53:12 pm
You are right kristofferis, the gateway will always publish beacons to "mcThings/beacon". We are hoping to keep the mcThings high level topics for our features as we add them. No need to use the mcThings high level topic. You can publish/subscribe to any topic you want.