I am creating a new device type (switch capability). When turned on/off all it does is send an http request. I need some sample code to do that. I am not sure how to invoke an http request when on/off command is executed. Any help would be greatly appreciated.
Thanks.