1234567891011121314151617181920 |
- #ifndef __TASK_H
- #define __TASK_H
- #include "includes.h"
- #include "stm32f2xx.h"
- #include "radio.h"
- #include "gateway_message.h"
- //Ö÷ÒªµÄÊý¾Ý´¦ÀíÏß³Ì
- #define DATA_TASK_PRIO 8
- #define DATA_STK_SIZE 2*1024
- #define GetCurrentTime() OSTimeGet()
- extern void data_task(void *pdata);
- extern tRadioDriver *Radio;
- void write_modbus_data(char* buf);
- void send_mqtt(char*buf);
- void find_difference(char* data1, char* data2, char* string);
- int read_device_data1(DEVICE_PARAMS *current_device,char* buf);
- int read_device_data(DEVICE_PARAMS *current_device,char* buf);
- void mqtt_to_device(void);
- #endif
|