IOT-ESP32
smartthings.h File Reference

Provides SmarThings and coordinates SmartApp/device discovery. More...

Functions

void smartthings_init ()
 Initialize SmartThings capabilities. More...
 
http_response_t st_api_request (http_client_t *, esp_http_client_method_t, char *)
 Perform a REST command to our SmartApp API. More...
 

Detailed Description

Provides SmarThings and coordinates SmartApp/device discovery.

Function Documentation

◆ smartthings_init()

void smartthings_init ( )

Initialize SmartThings capabilities.

This will start the tasks required to peer with a SmartApp via the configure mDNS service name, to provide us with the necessary details for consuing the API

◆ st_api_request()

http_response_t st_api_request ( http_client_t *  ,
esp_http_client_method_t  ,
char *   
)

Perform a REST command to our SmartApp API.

Basic requests only need to provide a blank client instance. Alternatively provide some additional configuration to perform more involed requests.

Returns
http_response_t