The serial monitor is printing out:
A number in hexidecimal
String of characters
A number in hexidecimal
138
{"id":"3","macAddress":"D8:A0:1D:41:C1:2","userId":"0","firmId":"4","registrationNumber":"1","title":"ESP32 Pico","description":"Testing robot state using the ESP32 Pico.","hardwareLayout":"","currentState":"0","red_led":"0","blue_led":"1","_links":{"self":{"href":"https:\/\/******************.com\/robot\/3"}}}
0
When I copy and paste this into my text editor I get
138
{"id":"3","macAddress":"D8:A0:1D:41:C1:2","userId":"0","firmId":"4","registrationNumber":"1","title":"ESP32 Pico","description":"Testing robot state using the ESP32 Pico.","hardwareLayout":"","currentState":"0","red_led":"0","blue_led":"1","_links":{"self":{"href":"https:\/\/******************.com\/robot\/3"}}}
0
In my text editor I can "show all characters" I get
138CRLF
CRLF
{"id":"3","macAddress":"D8:A0:1D:41:C1:2","userId":"0","firmId":"4","registrationNumber":"1","title":"ESP32 Pico","description":"Testing robot state using the ESP32 Pico.","hardwareLayout":"","currentState":"0","red_led":"0","blue_led":"1","_links":{"self":{"href":"https:\/\/******************.com\/robot\/3"}}}CRLF
CRLF
0CRLF
CRLF
I feel like I'm getting an extra CRLF between each line. Are these characters present or are they being added in by my Windows copy paste clipboard?
It is important because I am dealing with chunked HTTP responses and the hex numbers are the size of the chunks, but the it seems like there are characters unaccounted for.