Re: Victron , VE.Direct
turned out UDP was a poor choice, there is no guarantee UDP packets will be delivered at all or even arrive in order sent.
i changed over to an espwebserver model and used http GET/POST requests which worked ok but on a busy network or with poor wifi reception and having multiple clients made synchronizing victron device responses with the web requests very clumsy. ESPAsyncWebServer allows for a better solution has worked nicely, so far.
a WebSocket Server will probably be the ultimate solution when i find time to learn another trick.
best place to start is the arduino ESPAsyncWebServer demo
i took some ideas from this, but used littlefs rather than the deprecated spiffs
to really get anywhere you want an understanding of c++ , html and one of the browser scripting languages like js or php
this can answer most questions
https://www.w3schools.com/
my current educational project is a weather station webserver;
pic16f18326 - 32k fram - bme280 - esp02s
would love to find a socket to fit TYWE2S ESP8285 Module
i was using the m3 but the price/availability ratio has soured
Last edited by richard; - 27th December 2022 at 06:17.
Warning I'm not a teacher
Bookmarks