| Single threaded MQTT 'C' client [message #930090] |
Mon, 01 October 2012 22:30  |
Manish Jain Messages: 3 Registered: October 2012 |
Junior Member |
|
|
Hi All,
I have just downloaded the MQTT 'C' client. Somewhere in the documentation, I read that this client can
run in single thread also, and the behaviour of publish and subscribe will be synchronous in nature.
When I quickly peeked into the source code, there is no way by which we can run in Bare metal board(non OS based).
Please let me know if it is there and I missed it. I am planning to use very time processor to develop the mqtt client.
And having OS on this would be a costly affair.
Regards,
Manish
|
|
|
|
|
Re: Single threaded MQTT 'C' client [message #930662 is a reply to message #930558] |
Tue, 02 October 2012 10:19   |
|
(you will find that Ian Craggs the C client author may respond more quickly on the mailing list... we are working on how to integrate communications though!)
OK, so MQTT as implemented by Paho does depend on a TCP stack, and an OS. There is a variant called MQTT-s (MQTT for sensors) which does not need TCP, but Paho doesn't implement that. You could also look at the Arduino MQTT client which is independent of Paho for some ideas that may help.
One technique that is sometimes used in the lightweight model that you are describing is to have a local "concentrator" node running e.g. embedded Linux which can understand your networking protocol (UART, serial, zigbee or other mesh networks are examples) and then aggregate the data packets from sensors. This would then send MQTT messages upstream to a broker and other applications.
Cloud Foundry Developer Advocate @ Pivotal | Eclipse Paho project co-lead | mqtt.org | andypiper.co.uk
[Updated on: Tue, 02 October 2012 10:22] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02399 seconds