/* * 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 /*********************↑ 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_ */