at_client.h 588 B

123456789101112131415161718192021222324252627282930
  1. #ifndef _AT_CLIENT_H_
  2. #define _AT_CLIENT_H_
  3. #include <stdint.h>
  4. #include <stdio.h>
  5. #include <stdlib.h>
  6. #include <string.h>
  7. #define AT_SRV_NAME "com.grt.nebula.at.srv"
  8. #define MSG_SIZE_MAX 1024
  9. #define FILE_NAME_SIZE 50
  10. #define DEVICE_ID_SIZE 16
  11. enum at_command {
  12. AT_COMMAND_GET_KEY = 1,
  13. AT_COMMAND_GET_RAND,
  14. AT_COMMAND_GET_DEVICE_ID,
  15. AT_COMMAND_GET_REE_TIME,
  16. AT_COMMAND_GET_TEE_TIME,
  17. AT_COMMAND_STORAGE_WRITE_FILE,
  18. AT_COMMAND_STORAGE_READ_FILE,
  19. AT_COMMAND_END = 0xFF,
  20. };
  21. typedef struct {
  22. uint32_t seconds;
  23. uint32_t millis;
  24. } nbl_time_t;
  25. #endif