computourist / RFM69-MQTT-client

Arduino - RFM69 based sensors and MQTT gateway
GNU General Public License v2.0
81 stars 27 forks source link

using serial instead of Ethernet #2

Closed einsiedlerkrebs closed 9 years ago

einsiedlerkrebs commented 9 years ago

Hello Computourist,

i am happy to find your code, since i was looking for an MQTT(-SN) implementation for arduinos and RFM69. I was wondering how it would be possible, to run the gateway without an Ethernet shield, but an UART-serial instead? The scenario would be, that the GW-Arduino is connected to a third device (i.e. openWRT-machine with broker) using the serial to communicate with the broker. An advatage is that you could use a arduino pro mini with 3.3V directly with the radio modules an lower the hardware costs.

Thank you for the code (!) and for your help.

computourist commented 9 years ago

Hello Einsiedlerkrebs,

I chose for this setup for the following reasons:

I know that development is going on to implement a gateway together with a broker on Raspberry Pi. Have a look to the following forum for some inspiration:

http://homeautomation.proboards.com/

Regards,

einsiedlerkrebs commented 9 years ago

hi,

i do not mean, to make RFM69-MQTT-client depending on such a setting, but still it would be usefull. In my case i would like to use it in such a way, since

is it not possible, to use such a setting via an ifdef option? I am just asking cause i dont know, how to change the Ethernet based commands to serial based ones.

Regards

einsiedlerkrebs

computourist commented 9 years ago

Hi,

Rgds, Computourist