I have an mqtt broker installed on RPi. I want to send data meseaured from a sensor attached to Arduino to the broker in the RPi. For this I am using a sim808. I know that mqtt works in LAN how can I set a LAN between the RPi and the sim808
1 Answers
The Sim808 is a cellular GPRS data device (https://www.adafruit.com/product/2637), so getting data from it to a Raspberry Pi will depend on limits your wireless carrier has on the service that you have to sign up for. The data will have to travel from the Sim808, to the wireless carrier's data service that the Sim808 is connected to, out to the Internet, then to a publicly addressable node on your network (should be a Firewall) that is connected to the Internet, and then over to your Raspberry Pi MQTT broker. This could be a very expensive way to get data to your MQTT broker, especially if both devices are relatively close. Have you thought about using WiFi? If your sensor is going to be sending data at a high rate, you could easily go over your wireless service's data plan, and end up with a very large bill at the end of the month :(
- 618
- 4
- 8