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

Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —






— Match —





— Forum Options —





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

sp_Feed sp_TopicIcon
Not able to subscribe to a mqtt topic from arduino
No permission to create posts
January 29, 2018
4:19 am
Avatar
Vignesh maker

Silver
Members
Forum Posts: 11
Member Since:
January 25, 2018
sp_UserOfflineSmall Offline

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

January 29, 2018
3:53 pm
Avatar
cstapels
Moderator
Members


Moderators
Forum Posts: 258
Member Since:
March 7, 2017
sp_UserOfflineSmall Offline

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:
23 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 261

Vinod: 196

piajola: 85

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

Newest Members:

JamesVex, meghanfr69, raqueldk69, soniafw2, vitalijDrine, JosephAmapy

Administrators: Hans: 387, lee: 457