[Ovmsdev] Simple TCP client

Soko ovms at soko.cc
Sun Aug 23 19:54:34 HKT 2020


Hey everyone,

I'm trying to send a simple tcp msg to a remote tcp-server. I've looked 
into the FreeRTOS example 
(esp-idf\examples\protocols\sockets\tcp_client\) which works (kinda) but 
OVMS behaves weirdly when I do it like that.

Thomas pointed me to mongoose...

So is this the way to go? I would take canlog_tcpclient.cpp as a model...

Ohh... and is it OK if I send my tcp msg in the vehcile task? Mongoose 
should take care of unforeseen errors so the task shouldn't block, right?

thx

Soko





More information about the OvmsDev mailing list