zulfizie:
Hi im getting this error " exit status 1 expected '}' before ':' token "my error code is
String json = { "deviceDefault@2017idp2group9": "deviceDefault@FAVORIOT", "data": {"light":"ON"} } ;
im getting this code from
Im sorry because this my first time post so i dont know proper way to post this problem.
Hope u guys can help me thank you.
The code in that link uses
String json = "{\"device_developer_id\":\""+DEVICE+"\",\"data\":{\"Light\":\""+txt+"\"}}";
which doesn't look anything like your statement. Theirs compiles. Yours doesn't. Coincidence? I don't think so.