0

[SOLVE]Publishing error
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

[SOLVE]Publishing error

by _edx_ on Mon Apr 22, 2019 2:08 pm

Hi there :-)

I'm testing the wolfmqtt library, till now i've been able to connect, auth and subscribe successfully to io.adafruit.com, but i haven't been able to publish, every time i tried to publish a new value always appears the same message:

error saving data on _edx_/feeds/boton0, data missing required value

[Solution]
After many tries, i've found the right package format:
Code: Select all | TOGGLE FULL SIZE
buf[0]   unsigned char   0xA000F7B8   '1'; 0x31
*buf[1]   unsigned char   0xA000F7B9   DLE; 0x12   
*buf[2]   unsigned char   0xA000F7BA   NUL; 0x0   
*buf[3]   unsigned char   0xA000F7BB   SO; 0x0E   
*buf[4]   unsigned char   0xA000F7BC   '_'; 0x5f   
*buf[5]   unsigned char   0xA000F7BD   'e'; 0x65   
*buf[6]   unsigned char   0xA000F7BE   'd'; 0x64   
*buf[7]   unsigned char   0xA000F7BF   'x'; 0x78   
*buf[8]   unsigned char   0xA000F7C0   '_'; 0x5f   
*buf[9]   unsigned char   0xA000F7C1   '/'; 0x2f   
*buf[10]   unsigned char   0xA000F7C2   'f'; 0x66   
*buf[11]   unsigned char   0xA000F7C3   '/'; 0x2f   
*buf[12]   unsigned char   0xA000F7C4   'b'; 0x62   
*buf[13]   unsigned char   0xA000F7C5   'o'; 0x6f   
*buf[14]   unsigned char   0xA000F7C6   't'; 0x74   
*buf[15]   unsigned char   0xA000F7C7   'o'; 0x6f   
*buf[16]   unsigned char   0xA000F7C8   'n'; 0x6e   
*buf[17]   unsigned char   0xA000F7C9   '0'; 0x30   
*buf[18]   unsigned char   0xA000F7B8   'O'; 0x4F   
*buf[19]   unsigned char   0xA000F7B9 'n'; 0x6E


Hope it helps somebody else whos dealing with this.
Regards :-)

_edx_
 
Posts: 3
Joined: Fri Apr 19, 2019 7:05 pm

Re: [SOLVE]Publishing error

by brubell on Thu Apr 25, 2019 9:59 am

In the request body, pass in a 'value' field as a string.

https://io.adafruit.com/api/docs/#operation/createData

brubell
 
Posts: 471
Joined: Fri Jul 17, 2015 10:33 pm

Please be positive and constructive with your questions and comments.