mirror of
https://github.com/espressif/esp-rainmaker.git
synced 2026-01-14 19:58:01 +00:00
- APIs and data structures changed to a more object oriented approach. - Some internal files split into multiple files to separate out functionality of node, device and parameter. - A new doc file CHANGES.md added to help understand the changes. - Modified all the examples as per these changes in the RainMaker APIs.
17 lines
503 B
C
17 lines
503 B
C
/*
|
|
This example code is in the Public Domain (or CC0 licensed, at your option.)
|
|
|
|
Unless required by applicable law or agreed to in writing, this
|
|
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
CONDITIONS OF ANY KIND, either express or implied.
|
|
*/
|
|
#pragma once
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
#define DEFAULT_POWER true
|
|
extern esp_rmaker_device_t *switch_device;
|
|
void app_driver_init(void);
|
|
int app_driver_set_state(bool state);
|
|
bool app_driver_get_state(void);
|