| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- /*
- * Copyright (c) 2006-2021, RT-Thread Development Team
- *
- * SPDX-License-Identifier: Apache-2.0
- *
- * Change Logs:
- * Date Author Notes
- * 2025-03-27 RuoFeng the first version
- */
- #ifndef APPLICATIONS_PROTOCOL_H_
- #define APPLICATIONS_PROTOCOL_H_
- /*********************↑ declaration ↑************************/
- /**
- *
- *
- *
- *
- * */
- /*********************↓ define ↓************************/
- /*********************↑ define ↑************************/
- /**
- *
- *
- *
- *
- * */
- /*********************↓ include ↓************************/
- #include <cJSON.h>
- /*********************↑ include ↑************************/
- /**
- *
- *
- *
- *
- * */
- /*********************↓ extern ↓************************/
- /*********************↑ extern ↑************************/
- /**
- *
- *
- *
- *
- * */
- /********************↓ declaration ↓***********************/
- char *makeJson_NEW(uint8_t type);
- struct RES_Type
- {
- char ACTION_ID[22];
- char COMMAND[6];
- char TIMING[30];
- char RESULT[6];
- };
- typedef enum
- {
- dev_on = 1,
- dev_off,
- dev_reboot,
- dev_takepho,
- dev_sta,
- dev_readcfg,
- dev_setcfg,
- dev_setpara,
- dev_typemax
- } DevCmd_def;
- void prase_NewCmd(char *cmd);
- /********************↑ declaration ↑***********************/
- /**
- *
- *
- *
- *
- * */
- /*********************↓ global variables ↓************************/
- /*********************↑ global variables ↑************************/
- /**
- *
- *
- *
- *
- * */
- #endif /* APPLICATIONS_PROTOCOL_H_ */
|