Is there a way to monitor the change and address value of the function according to the operation of the smart things app button?

I use esp8266 in Ubuntu as a direct connection method. We are building and using light_example of st-device-sdk-c-ref.

There are two questions.

  1. Is there a way to monitor the conversion information such as the current address value in detail when the switch button is pressed in the app?

  2. Can you explain what the constchar *(*get_switch_value)(struct caps_switch_data *caps_data); form means in the declaration in the picture?
    캡처

hi, @user30

  1. the conversation between device and cloud is over TLS. so it is impossible to monitor
  2. the code is representing “switch capability” from Capabilities Reference | SmartThings Developers
    So the value would be “on” or “off”.
    you could see the usage of that value from st-device-sdk-c-ref/main.c at 3df85fe6ffaae7e1f8f5260f19c1b06f5660dfc6 · SmartThingsCommunity/st-device-sdk-c-ref · GitHub
    the capability modeling file also to be useful for the understanding st-device-sdk-c/iot_caps_helper_switch.h at master · SmartThingsCommunity/st-device-sdk-c · GitHub
2 Likes