Not able to subscribe to a mqtt topic from arduino | ThingSpeak API | Forum

Avatar

Please consider registering
Guest

Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

Register Lost password?
sp_Feed sp_TopicIcon
Not able to subscribe to a mqtt topic from arduino
Avatar
Vignesh maker

Silver
Forum Posts: 10
sp_UserOfflineSmall Offline
1
January 29, 2018 - 4:19 am
sp_Permalink sp_Print

There is only documentation for publishing to thingspeak from Arduino client using mqtt. Can anyone help me out to subscribe a channel from an Arduino client and receive data using mqtt. Is it even possible? 

BTW I was able to receive data using the MQTT.fx software.

Thanks in advance

Avatar
cstapels
Moderator
Forum Posts: 158
sp_UserOfflineSmall Offline
2
January 29, 2018 - 3:53 pm
sp_Permalink sp_Print

Vignesh,

Yes, it is possible to subscribe to a ThingSpeak channel using an Arduino.  There is an example currently for a MQTT subscribe on particle photon.  The photon is very similar to Arduino.  If you were able to subscribe with MQTT.fx, you should be almost there.

You might consider the pubsub client for your MQTT library.  Let me know if this example works for you.

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online:
38 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 252

Vinod: 164

cstapels: 96

piajola: 75

vespapierre: 63

Adarsh_Murthy: 59

Newest Members:

ibgedubo

aogomaeqaza

ureomug

itixuwidouzuv

eilimir

memozupi

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

 

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Administrators: Hans, lee