Using the new Arduino IDE for ESP8266 and found bugs, report them here

Moderator: igrr

User avatar
By CheapB
#15491
gerardwr wrote:
CheapB wrote:Yes, I was trying to provide the minimum code required to force the reset. I need the received UDP package in a string for further processing - hence the recv. How would you go about that?


Have a look at my example here, maybe it helps:
http://www.esp8266.com/viewtopic.php?f=29&t=2451


I tried this. It cuts off the last byte of the received UDP package and stops working in my environment. I am on windows 8.1.
User avatar
By gerardwr
#15508
CheapB wrote:I tried this. It cuts off the last byte of the received UDP package and stops working in my environment. I am on windows 8.1.


If it cuts off the last byte you could change
Code: Select all    if (len > 0) packetBuffer[len] = 0;

into something like
Code: Select all    if (len > 0) packetBuffer[len+1] = 0;
User avatar
By CheapB
#15552
gerardwr wrote:
CheapB wrote:I tried this. It cuts off the last byte of the received UDP package and stops working in my environment. I am on windows 8.1.


If it cuts off the last byte you could change
Code: Select all    if (len > 0) packetBuffer[len] = 0;

into something like
Code: Select all    if (len > 0) packetBuffer[len+1] = 0;


Sure, that is not a bit issue. The bigger problem is it stops working after receiving 1 package..
User avatar
By gerardwr
#15579
CheapB wrote:Sure, that is not a bit issue. The bigger problem is it stops working after receiving 1 package..


The sketch is OK on my Mac.

Could the problem be caused by the program you use to send the UDP packet?

I use Packet Sender for testing (also available for Windows).