semilimes mcu sdk 1.1.1
semilimes Software Development Kit for microcontrollers
Loading...
Searching...
No Matches
dc_location.h
1#ifndef _dc_location_
2#define _dc_location_
3
4#include "../defines.h"
5
7{
8private:
9 #define headerSize 75
10 SmeJson json_data;
11 char* json = nullptr;
12
13public:
14// Function: ~DcLocation
15
16// distructor of the class, frees up the memory occupied by the array/s
17
18// Prototype:
19// ~DcLocation()
20
21// Parameters:
22
23// Returns:
26 {
27 delete[] json;
28 json = nullptr;
29 }
30
31// Function: DcLocation.set
32
33// A location message containing coordinates
34
35// Prototype:
36// void DcLocation::set(char* locationName,float latitude, float longitude);
37
38// Parameters:
42
43// Returns:
45 void set(char* locationName,float latitude, float longitude);
46
47// Function: DcLocation.get
48
49// return the json script
50
51// Prototype:
52// void DcLocation::get();
53
54// Parameters:
55
56// Returns:
58 char* get();
59};
60
61#endif
Definition dc_location.h:7
void set(char *locationName, float latitude, float longitude)
Definition dc_location.cpp:17
~DcLocation()
Definition dc_location.h:25
char * get()
Definition dc_location.cpp:42