Send JSON String over ESPNOW

grayefx
Posts: 6
Joined: Sun Dec 09, 2018 8:36 pm
Location: Guadalajara, Mexico

Send JSON String over ESPNOW

Postby grayefx » Mon Dec 23, 2019 6:33 pm

Hello

I'm trying to send a simple string "HelloWorld" over ESPNOW (i really want to send a complete JSON but this is a test).

Master says that send the message OK.
Slave recieve the message but only the first 4 chars "Hell", so is missing "oWorld"

I read the documentation and it says that max is 250 Bytes, there is some way to send and recieve more information?

ESP_Sprite
Posts: 9770
Joined: Thu Nov 26, 2015 4:08 am

Re: Send JSON String over ESPNOW

Postby ESP_Sprite » Tue Dec 24, 2019 6:18 am

Hard to say what's going wrong without looking at the code. My intuition tells me that you're possibly using sizeof() on a pointer as the length, though.

Who is online

Users browsing this forum: No registered users and 65 guests