I have an ESP32 Feather, and I want to transmit two sensor data (consider two potentiometers signal) through wireless to a laptop or android phone. It is great if I can have their change plotted as well.
I could manage to have the data and their plot in Coolterm when I have the board connected to the laptop through USB. But no success with a wireless system so far.
I tried Blynk, Arduino IoT, Adafruit IoT, etc, but I need the data transmitted at a high rate (20 ms), and all these IoT services need a premium account to allow such a rate.
I tried BLE and could get data in Coolterm or Putty, or Serial Bluetooth Terminal (an app on Android), but the data is shown in nonsense characters, and no value is shown.
I also tried CircuitPython, but it seemed very difficult when I don't know Python itself.
It has been about two weeks that I am struggling with different platforms to do this project.
I would be very grateful if you could help me with some clues.
Since that is an Adafruit product, you should start with their excellent tutorials.
Study them very carefully. They usually work as expected, if you follow the instructions. If you have problems, the Adafruit forum is the first place to ask about Adafruit products.
I understand your point. I studied all the related ones and all concluded to their IoT platform.
And the board is just an ESP32 like all the other ESP32s available. So, I think there might be a person helping me here. I also wrote my question there.
No. I think Arduino-Bluetooth-Android-Cetin is a marriage made in heaven.
One of its greatest assets is the minimum use of Arduino resources. I guess that is not so relevant with ESP32.
I'm not aware of any WiFi terminal that is equivalent, but you may be able to do the same thing by datastreaming into Excel on a PC.
I followed the instruction on "randomnerdtutorials" and I decided to publish my data in a chart using MQTT and Node-red. I could install Mosquitto and node-red and connect them together so that I can publish and subscribe currently. However, when I try to connect my ESP32 to the MQTT through a code in Arduino IDE, it is not possible.
Everything works fine except connecting to the Mosquitto. I receive this error repeatedly:
Attempting MQTT connection...failed, rc=-2 try again in 5 seconds
I searched it on the net, and there have been many people having this problem. I read about 20 threads and did what people said as the solution in all of them. No success yet.
using Arduino IDE Library Manager (click Sketch>Include Library>Manage Libraries) instal the CayenneMQTTESP32 librrary
open project Examples>Cayenne-MQTT-ESP>ESP32
edit the WiFi ssid and wifipassword
copy the MQTT information from the cayenne create new project page to
// Cayenne authentication info. This should be obtained from the Cayenne Dashboard.
char username[] = "8e92cd80-8267-11eb-8779-7d56e82df461";
char password[] = "7df991c57a5cdd0c696d55186bb2a5607756ace0";
char clientID[] = "ec369700-63e3-11ed-b193-d9789b2af62b";
build and run the project - the serial monitor should display
[633] Connecting to XXXXXXX
[3134] Connected to WiFi
[3134] IP: 192.168.1.211
[3134] Connecting to mqtt.mydevices.com:1883
[4510] Connected
the ESP32 board is connected and data displayed on the cayenne desktop, e.g.