semilimes mcu sdk 1.1.5
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 SmeJson json_data;
10 char* json = nullptr;
11
12public:
13// Function: ~DcLocation
14
15// distructor of the class, frees up the memory occupied by the array/s
16
17// Prototype:
18// ~DcLocation()
19
20// Parameters:
21
22// Returns:
25 {
26 delete[] json;
27 json = nullptr;
28 }
29
30// Function: DcLocation.set
31
32// A location message containing coordinates
33
34// Prototype:
35// void DcLocation::set(const char* locationName,float latitude, float longitude);
36
37// Parameters:
41
42// Returns:
44 void set(const char* locationName,float latitude, float longitude);
45
46// Function: DcLocation.get
47
48// return the json script
49
50// Prototype:
51// void DcLocation::get();
52
53// Parameters:
54
55// Returns:
57 char* get();
58};
59
60#endif
Definition dc_location.h:7
void set(const char *locationName, float latitude, float longitude)
Definition dc_location.cpp:17
~DcLocation()
Definition dc_location.h:24
char * get()
Definition dc_location.cpp:42