Hi,
I’d like to use the ESP8266 to controle my Kodi Mediacenter but Kodi sends an error because the http address is broken.
Getting weatherinformations from GET /data/2.5/weather?id="12345 HTTP/1.0\r\nHost: api.openweathermap.org\r\n\r\n
is no problem.
GET /jsonrpc?request={“jsonrpc”:“2.0”,“method”:“Player.Open”,“params”:{“item”:{“file”:“smb://CLOUDSERVER/Mediaserver/Musik/CDs/Daft Punk/Random Access Memories/13 Contact.mp3” } }, “id”: 1} HTTP/1.0\r\nHost: 192.168.0.20\r\n\r\n
dosen’t work. when i read the buffer after writing the command i get one of these outputs:
GET /jsonrpc?request={"jsonrpc":"2.0","method":"Player.Open","20
END OK
IPD,184:HTTP/1.1 200 OK
ontent-Length: 76
ontent-Type: application/json
ate: Thu, 27 Aug 2015 02:57:08 GMT
"error":{"code":-32700,"message":"Parse error."},"id":null,"jsonrpc":"2.0"}
K
K
nlink
_______________________________________________________________
GET /jsonrpc?request={"jsonrpc":"2.0","method":"Player.Open","20
RROR
nlink
_______________________________________________________________
GET /jsonrpc?request={"jsonrpc":"2.0","method":"Player.Open","20ies/13 Contact.mp3" } }, "id": 1} HTTP/1.0
RROR
nlink
I know next to nothing about wifi coding but I happened to be watching a video on this site and at about 1 min 58 seconds into the video the author discusses a point that may be your problem. - Scotty
Initially I advised to only change only the RX buffer because when the ESP8266 communicates it sends a "large" message, so u need a bigger buffer to receive messages from the ESP8266.
But then I realized you were having trouble transmitting a large message, hence I added the change to the TX buffer as well.
understood that.
my question is why i read stuff from my rx buffer with serial.read() when i've write it to the tx buffer with serial.print()? thaught they are seperate