Umar Naeem / C027_SupportTest_coapp

Dependencies:   C027_Support mbed-dev

Fork of C027_SupportTest_coap by Umar Naeem

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.h Source File

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