-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathatevent.h
36 lines (26 loc) · 828 Bytes
/
atevent.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
32
33
34
35
36
// Copyright: (C) 2016 ESIMTEK ALL RIGHTS RESERVED
// author: Yonghua Zheng
#ifndef __ATEVENT_H
#define __ATEVENT_H
#include "atproperties.h"
class AtEvent
{
private:
int status;
int errCode;
char propName[MAX_PROPERTY_NAME];
char propValue[MAX_PROPERTY_VALUE];
AtEvent();
public:
virtual ~AtEvent();
int getStatus() { return status; }
int getErrorcode() { return errCode; }
const char* getPropName() { return propName; }
const char* getPropValue() { return propValue; }
static const int AtEventUnknown;
static const int AtEventOk;
static const int AtEventError;
static const int AtEventReport;
static AtEvent* decodeFromMessage(char *response);
};
#endif