onenet_port.c 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * File : onenet_port.c
  3. * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License along
  16. * with this program; if not, write to the Free Software Foundation, Inc.,
  17. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  18. *
  19. * Change Logs:
  20. * Date Author Notes
  21. * 2018-04-24 chenyong first version
  22. */
  23. #include <stdlib.h>
  24. #include <onenet.h>
  25. #define DBG_ENABLE
  26. #define DBG_COLOR
  27. #define DBG_SECTION_NAME "onenet.port"
  28. #if ONENET_DEBUG
  29. #define DBG_LEVEL DBG_LOG
  30. #else
  31. #define DBG_LEVEL DBG_INFO
  32. #endif /* ONENET_DEBUG */
  33. #include <rtdbg.h>
  34. int onenet_port_data_process(char *recv_data, rt_size_t size)
  35. {
  36. LOG_D("Recv data : %.*s", size, recv_data);
  37. return 0;
  38. }