-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5aa8b33
commit 86fa0ff
Showing
5 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/* | ||
* @Author: yj | ||
* @email: [email protected] | ||
* @LastEditors: yj | ||
* @file name: tuya_device.c | ||
* @Description: template demo for SDK WiFi & BLE for BK7231T | ||
* @Copyright: HANGZHOU TUYA INFORMATION TECHNOLOGY CO.,LTD | ||
* @Company: http://www.tuya.com | ||
* @Date: 2021-01-23 16:33:00 | ||
* @LastEditTime: 2021-01-27 17:00:00 | ||
*/ | ||
|
||
#define _TUYA_DEVICE_GLOBAL | ||
|
||
/* Includes ------------------------------------------------------------------*/ | ||
#include "uni_log.h" | ||
#include "tuya_iot_wifi_api.h" | ||
#include "tuya_hal_system.h" | ||
#include "tuya_iot_com_api.h" | ||
#include "tuya_cloud_com_defs.h" | ||
#include "gw_intf.h" | ||
#include "gpio_test.h" | ||
#include "tuya_gpio.h" | ||
#include "tuya_key.h" | ||
#include "tuya_led.h" | ||
#include "wlan_ui_pub.h" | ||
|
||
#include "lwip/sockets.h" | ||
#include "lwip/ip_addr.h" | ||
#include "lwip/inet.h" | ||
|
||
#include "mem_pub.h" | ||
#include "str_pub.h" | ||
#include "ethernet_intf.h" | ||
|
||
|
||
static int g_secondsElapsed = 0; | ||
|
||
beken_timer_t led_timer; | ||
|
||
const char *CFG_GetDeviceName() { | ||
return "obk_none"; | ||
} | ||
|
||
|
||
|
||
|
||
// receives status change notifications about wireless - could be useful | ||
// ctxt is pointer to a rw_evt_type | ||
void wl_status( void *ctxt ){ | ||
|
||
|
||
} | ||
|
||
void user_main(void) | ||
{ | ||
OSStatus err; | ||
|
||
bk_printf("[OpenBK2731T None]!\r\n"); | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
./build_app.sh apps/obk_demo_adc obk_demo_adc git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
./build_app.sh apps/obk_hello_world obk_hello_world git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
./build_app.sh apps/obk_demo_scanNetworks obk_demo_scanNetworks git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
./build_app.sh apps/obk_none obk_none git |