Sirapol Sriuaipornchai

Results 19 comments of Sirapol Sriuaipornchai

Hello , Is this issues solve or not ? I still like your problem "The calibration failed!"

> The `serializeJson` call should work and simply print a json with a key of `"method"` and the value `"switch_state"` and the same again but with the key `"params"`. >...

And this Tenant is new one very clean. I just add rule node for debug. Rule node is working. And i try with js client. It working normaly. ![image](https://github.com/thingsboard/thingsboard-client-sdk/assets/7825850/e0671fbe-9d1f-4a55-94e5-f3b70b70de64) ![image](https://github.com/thingsboard/thingsboard-client-sdk/assets/7825850/fbea7500-4a4b-45d1-b6c2-9123b80f32a9)...

I found something in RPC_Response.cpp Why it nothing to do ? What should i do ? ![image](https://github.com/thingsboard/thingsboard-client-sdk/assets/7825850/3d84a765-9c79-424d-bba5-13db58a2c064)

> The aforementioned code is correct, because nothing to do is the case, because we do not need to do anything in the constructor body, we do pass the given...

> For the previous example, `return RPC_Response(nullptr, switch_state);`, which value does it show in the cloud? Because from the log message it seems like it should show 1. > >...

> I think the problem is that the message, in this case without a key, is not sent. Because there is no log message printing that something was sent. Which...

> Can you adjust the code to something like this: > > ```c++ > StaticJsonDocument doc; > JsonVariant variant = doc.to(); > variant.set(switch_state); > return RPC_Response(doc); > ``` Ok this...

> I'll have to try it myself, but as far as I know multiple keys are not possible, you should be able to send one big string containing a `json`...