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
83bc016
commit be6f6c3
Showing
5 changed files
with
36 additions
and
2 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
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
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
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
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,25 @@ | ||
|
||
#include "../new_common.h" | ||
#include "../new_pins.h" | ||
#include "../new_cfg.h" | ||
// Commands register, execution API and cmd tokenizer | ||
#include "../cmnds/cmd_public.h" | ||
#include "../logging/logging.h" | ||
#include "drv_tuyaMCU.h" | ||
#include "drv_uart.h" | ||
#include <time.h> | ||
#include "drv_ntp.h" | ||
|
||
static int g_elapsedTime = 0; | ||
|
||
static byte g_hello[] = { 0x55, 0xAA, 0x00, 0x01, 0x00, 0x00, 0x00 }; | ||
void TuyaMCU_Sensor_RunFrame() { | ||
|
||
g_elapsedTime++; | ||
|
||
if(g_elapsedTime == 5) { | ||
TuyaMCU_Send_RawBuffer(g_hello,sizeof(g_hello)); | ||
} | ||
} | ||
|
||
|