Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: C027_Support mbed-dev
Fork of C027_SupportTest_coap by
main.h
00001 #ifndef MAIN_H 00002 #define MAIN_H 00003 00004 #include <time.h> 00005 00006 #define HOST "5.39.83.206"//coap.me ip address//"127.0.0.1" /**< Host address of the server */ 00007 #define PORT "5683"//coap.me port//"12436" /**< UDP port number of the server */ 00008 00009 #ifdef __cplusplus 00010 extern "C" { 00011 #endif 00012 #include "coap_msg.h" 00013 extern int recv(int socket_d, char *buf, int len); 00014 extern int send(int socket_d, char *buf, int len); 00015 extern int readseconds(void); 00016 00017 #ifdef __cplusplus 00018 } 00019 #endif 00020 00021 int recv(int socket_d, char *buf, int len); 00022 int send(int socket_d, char *buf, int len); 00023 00024 void ussd_send(void); 00025 void sleep_mode(void); 00026 void responce_checker(void); 00027 00028 void collect_assets(void); 00029 void send_packet(void); 00030 int initialize_modem(void); 00031 #endif 00032
Generated on Sun Jul 17 2022 00:59:13 by
