forked from itead/ITEADLIB_Arduino_SIMCom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
inetGSM.h
31 lines (23 loc) · 913 Bytes
/
inetGSM.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef _INETGSM_H_
#define _INETGSM_H_
#define BUFFERSIZE 1
#include "SIM900.h"
class InetGSM {
private:
char _buffer[BUFFERSIZE];
public:
int httpGET(const char* server, int port, const char* path, char* result, int resultlength);
int httpPOST(const char* server, int port, const char* path, const char* parameters, char* result, int resultlength);
// Fast and dirty solution. Should make a "mail" object. And by the moment it does not run.
int openmail(char* server, char* loginbase64, char* passbase64, char* from, char* to, char* subj);
int closemail();
int attachGPRS(char* domain, char* dom1, char* dom2);
int dettachGPRS();
int connectTCP(const char* server, int port);
int disconnectTCP();
int connectTCPServer(int port);
boolean connectedClient();
// This runs, yes
//int tweet(const char* token, const char* msg);
};
#endif