Author Topic: Topics?  (Read 237 times)

Artanicus

  • Newbie
  • *
  • Posts: 17
    • View Profile
Topics?
« on: June 07, 2016, 04:28:05 pm »
I can't seem to find anywhere what topics should I subscribe to? Running Mosquitto.

Social Buttons


kristofferis

  • Sr. Member
  • ****
  • Posts: 285
  • Location: Sweden
    • View Profile
Re: Topics?
« Reply #1 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.

mc-Abe

  • Full Member
  • ***
  • Posts: 167
    • View Profile
    • mc-Things
Re: Topics?
« Reply #2 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.