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
- Committer:
- ranaumarnaeem
- Date:
- 2017-05-24
- Revision:
- 37:43d48521d4d7
- Parent:
- 34:d6ce8f961b8b
File content as of revision 37:43d48521d4d7:
#ifndef MAIN_H
#define MAIN_H
#include <time.h>
#define HOST "5.39.83.206"//coap.me ip address//"127.0.0.1" /**< Host address of the server */
#define PORT "5683"//coap.me port//"12436" /**< UDP port number of the server */
#ifdef __cplusplus
extern "C" {
#endif
#include "coap_msg.h"
extern int recv(int socket_d, char *buf, int len);
extern int send(int socket_d, char *buf, int len);
extern int readseconds(void);
#ifdef __cplusplus
}
#endif
int recv(int socket_d, char *buf, int len);
int send(int socket_d, char *buf, int len);
void ussd_send(void);
void sleep_mode(void);
void responce_checker(void);
void collect_assets(void);
void send_packet(void);
int initialize_modem(void);
#endif
