MQTT over I2C?

1,230 views
Skip to first unread message

Sandy Walsh

unread,
Oct 19, 2013, 12:18:09 PM10/19/13
to mq...@googlegroups.com
Hey y'all,

I'd like to do MQTT over I2C, specifically for Arduino to RaspberryPi communications.

All the arduino MQTT libraries I can find are ethernet based, but I think a port would be pretty easy (with a proxy server on the RPi side). 

Does this exist already?

Does it sound feasible?

Thanks!
-S

Nicholas O'Leary

unread,
Oct 19, 2013, 4:14:51 PM10/19/13
to mq...@googlegroups.com
Hi Sandy,

I'm not aware of this already having been done. I think it would be pretty straightforward to do.

PubSubClient [1] expects an implementation of Client.h [2] to be passed in its constructor. This is why it Just Works with the ethernet hardware, as well as wifi shields and the Yun.

If you create an implementation of Client.h that talks i2c under the covers, you can just pass that to the PubSubClient as-is and it'll work.








--
--
To learn more about MQTT please visit http://mqtt.org
 
To post to this group, send email to mq...@googlegroups.com
To unsubscribe from this group, send email to
mqtt+uns...@googlegroups.com
 
For more options, visit this group at
http://groups.google.com/group/mqtt
 
---
You received this message because you are subscribed to the Google Groups "MQ Telemetry Transport" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mqtt+uns...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Sandy Walsh

unread,
Oct 20, 2013, 12:36:25 PM10/20/13
to mq...@googlegroups.com
Thanks Nick ... I'll go that route. 

-S

chat perlipopète

unread,
Jan 23, 2015, 4:44:25 AM1/23/15
to mq...@googlegroups.com
Hi Sandy, 
did you succeeded in porting any mqtt thing to I2C ?
I'm thinking about doing analog work with Coap as it doesn't need any connection & authentication phases ... 
cheers 
Rico 
Reply all
Reply to author
Forward
0 new messages