websocket_handle.h 345 B

123456789101112131415161718192021222324
  1. #ifndef __WEBSOCKET_HANDLE_H
  2. #define __WEBSOCKET_HANDLE_H
  3. #include "json_handle.h"
  4. #define WS_EVT_DATA 0x11
  5. typedef struct {
  6. int evt;
  7. void *data;
  8. int len;
  9. }ws_data_t;
  10. typedef struct {
  11. int ph3;
  12. _OverAllPwrAckInfo ch[3];
  13. }pwrall_info_t;
  14. int websocket_init(void);
  15. pwrall_info_t *websocket_get_pwrall(void);
  16. #endif