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