0
votes

When trying to complete the tutorial at https://developer.ibm.com/recipes/tutorials/how-to-connect-mediatek-linkit-one-development-board-to-ibm-bluemix/

All runs fine except I am getting an "unsuccessfully sent" error.

I checked the status of the service all seems fine?

Not sure what to try next?

Edit: Example of response when trying to connect to registered device.


temperature = 21.40 humidity = 47.10 Trying to connect to: d:ctk1yn:LinkitOneOffice:autumnlinkitone Connected !!: publishing... !!: attempt to send { "d": { "myName": "LinkIt ONE", "temperature (F)": 72, "temperature (C)": 21, "humidity": 47 } } to iot-2/evt/status/fmt/json unsuccessfully sent

1
That tutorial walks through the quickstart connection and I notice the linked GitHub repository also has the code for connecting as a registered device. It looks like your error is with the registered connection. Did the quickstart work ok for you? - ValerieLampkin
I received the same unsuccessfully sent for both QuickStart and registered connection. - Andy Clark
Earlier when I checked the logs it looked like your connection was ok, so perhaps there is a problem with the Json formatting. I added the json tag to your question for other SMEs to see it. - ValerieLampkin
Is there an example of the expected Json formatting? - Andy Clark
I found the solution I took the line breaks data+="\n"; out of the json being generated. Worked for both quickstart and registered scripts. - Andy Clark

1 Answers

1
votes

Make sure json being generated is a single line string with no line breaks.