semilimes mcu sdk 1.1.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 #define optionsHeaderSize 11
11 SmeJson json_data;
12 char* json = nullptr;
13
14// Function: ChannelMessageSend.addOptions
15
16// add an list of options
17
18// Prototype:
19// void ChannelMessageSend::addOptions(bool silent);
20
21// Parameters:
23
24// Returns:
26 void addOptions(bool silent);
27
28
29public:
30// Function: ChannelMessageSend
31
32// Function: ~ChannelMessageSend
33
34// distructor of the class, frees up the memory occupied by the array/s
35
36// Prototype:
37// ~ChannelMessageSend()
38
39// Parameters:
40
41// Returns:
44 {
45 delete[] json;
46 json = nullptr;
47 }
48
49// Function: ChannelMessageSend.set
50
51// This endpoint allows to send a data component to a Channel as a new message.
52
53// Prototype:
54// void set(char* messageId, char* dataComponent);
55
56// Parameters:
60
61// Returns:
63 void set(char* channelId, char* dataComponent, bool silent);
64
65// Function: ChannelMessageSend.getEPurl
66
67// provides the full url for this endpoint
68
69// Prototype:
70// char* getEPurl();
71
72// Parameters:
73
74// Returns:
76 char* getEPurl();
77
78// Function: ChannelMessageSend.get
79
80// return the json script
81
82// Prototype:
83// void ChannelMessageSend::get();
84
85// Parameters:
86
87// Returns:
89 char* get();
90};
91
92#endif
Definition channel_message_send.h:7
char * get()
Definition channel_message_send.cpp:82
char * getEPurl()
Definition channel_message_send.cpp:65
void set(char *channelId, char *dataComponent, bool silent)
Definition channel_message_send.cpp:18
~ChannelMessageSend()
Definition channel_message_send.h:43