at_sample_w60x.c 915 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Copyright (c) 2006-2023, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2019-05-10 chenyong first version
  9. */
  10. #include <at_device_w60x.h>
  11. #define LOG_TAG "at.sample.w60x"
  12. #include <at_log.h>
  13. #define W60X_SAMPLE_DEIVCE_NAME "w60x0"
  14. static struct at_device_w60x w60x0 =
  15. {
  16. W60X_SAMPLE_DEIVCE_NAME,
  17. W60X_SAMPLE_CLIENT_NAME,
  18. W60X_SAMPLE_WIFI_SSID,
  19. W60X_SAMPLE_WIFI_PASSWORD,
  20. W60X_SAMPLE_RECV_BUFF_LEN,
  21. };
  22. static int w60x_device_register(void)
  23. {
  24. struct at_device_w60x *w60x = &w60x0;
  25. return at_device_register(&(w60x->device),
  26. w60x->device_name,
  27. w60x->client_name,
  28. AT_DEVICE_CLASS_W60X,
  29. (void *) w60x);
  30. }
  31. INIT_APP_EXPORT(w60x_device_register);