semilimes mcu sdk 1.0.1
semilimes Software Development Kit for microcontrollers
Loading...
Searching...
No Matches
p2p_message_send.h
1#ifndef _p2p_message_send_
2#define _p2p_message_send_
3
4#include "../defines.h"
5
7{
8private:
9 #define headerSize 35
10 SmeJson json_data;
11 char* json = nullptr;
12
13public:
14// Function: ~P2pMessageSend
15
16// distructor of the class, frees up the memory occupied by the array/s
17
18// Prototype:
19// ~P2pMessageSend()
20
21// Parameters:
22
23// Returns:
26 {
27 delete[] json;
28 json = nullptr;
29 }
30
31// Function: P2pMessageSend.set
32
33// This endpoint allows to send a data component to a Channel as a new message.
34
35// Prototype:
36// void set(char* recipientId, char* dataComponent);
37
38// Parameters:
41
42// Returns:
44 void set(char* recipientId, char* dataComponent);
45
46// Function: P2pMessageSend.getEPurl
47
48// provides the full url for this endpoint
49
50// Prototype:
51// char* getEPurl();
52
53// Parameters:
54
55// Returns:
57 char* getEPurl();
58
59// Function: P2pMessageSend.get
60
61// return the json script
62
63// Prototype:
64// void P2pMessageSend::get();
65
66// Parameters:
67
68// Returns:
70 char* get();
71};
72
73#endif
Definition p2p_message_send.h:7
char * get()
Definition p2p_message_send.cpp:56
~P2pMessageSend()
Definition p2p_message_send.h:25
void set(char *recipientId, char *dataComponent)
Definition p2p_message_send.cpp:17
char * getEPurl()
Definition p2p_message_send.cpp:39