I have an ESP8266 connected to a neopixel matrix display, and I want to send data to the ESP to display on the screen. The data will be generated by Node Red running on raspberry pi. Node Red server runs on HTTPS and has a self signed certificate.
First I was thinking about creating a HTTP request in NR and ESP would call that and get the text in the response. I always got -1 as the HTTP result. Maybe because it was HTTPS, I am not sure. I have given up that root.
I was also thinking about using MQTT, but the information I want to send over is too much for an MQTT message. I also wanted to time when the data is exchanged between the two devices so it does not impact the display. So I have given up on MQTT.
Next I tried setting up a UDP port in the ESP. This works, but in general only about 20% of the messages are received by the ESP.
This is were I am right now. I don't know what else I should try. Do I need a TCP port communication? Or websocket? I think what I would prefer if Node Red could call the ESP and send the data over.
Can you guys recommend? Also some examples would be useful.
Cheers,
Csongor