You can chat about native SDK questions and issues here.

User avatar
By SteveBaker
#56171 So I'm gradually working up my skill level with native ESP code - I am at the point where I can successfully send USB packets. My code sends "Hello World" in a 256 byte packet over and over at 1ms intervals. However, seemingly at random, I'll get an ESPCONN_IF error (error code -14) returned from the espconn_sent call.
Increasing the packet rate to one every 0.1ms or decreasing it to one every 10ms doesn't seem to prevent the error.

I wondered whether there was a speed overrun problem or something - so I tried registering an espconn_regist_sentcb and only sending a packet after the previous one's callback had returned. Didn't make a difference.

So what's the deal? What the heck does ESPCONN_IF mean? The documents say "USB send error" - which is stunningly un-useful when returned from the USB Send function!