Found this online, where someone had a similar issue.
byte unsignedByte( int val ) { return (byte)( val > 127 ? val - 256 : val ); }
Might give it a go and see if that fixes the issue.
Explore... Chat... Share...
Moderator: igrr
byte unsignedByte( int val ) { return (byte)( val > 127 ? val - 256 : val ); }
martinayotte wrote:Could be on the Putty side, but not on ESP side otherwise my python script would have shown the issue.
I'm not using Putty, but how the capture is been done ?
What is interesting is the fact that the capture shows 2 bytes for each one received.
DAFlippers wrote:Also note that you are not seeing 00 either. Your sequence is going 7F C280 ... C2BF C380... C3BF which is strange.
David
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]