semilimes mcu sdk 1.1.3 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
6 class ChannelMessageSend
7{
8 private:
9 SmeJson json_data;
10 char* json = nullptr;
11
12// Function: ChannelMessageSend.addOptions
13
14// add an list of options
15
16// Prototype:
17// void ChannelMessageSend::addOptions(bool silent);
18
19// Parameters:
21
22// Returns:
24 void addOptions(bool silent);
25
26
27 public:
28// Function: ChannelMessageSend
29
30// Function: ~ChannelMessageSend
31
32// distructor of the class, frees up the memory occupied by the array/s
33
34// Prototype:
35// ~ChannelMessageSend()
36
37// Parameters:
38
39// Returns:
41 ~ChannelMessageSend()
42 {
43 delete[] json;
44 json = nullptr;
45 }
46
47// Function: ChannelMessageSend.set
48
49// This endpoint allows to send a data component to a Channel as a new message.
50
51// Prototype:
52// void set(const char* channelId, const char* dataComponent, bool silent);
53
54// Parameters:
58
59// Returns:
61 void set(const char* channelId, const char* dataComponent, bool silent);
62
63// Function: ChannelMessageSend.getEPurl
64
65// provides the full url for this endpoint
66
67// Prototype:
68// char* getEPurl();
69
70// Parameters:
71
72// Returns:
74 char* getEPurl();
75
76// Function: ChannelMessageSend.getWSEPurl
77
78// provides this endpoint
79
80// Prototype:
81// char* getWSEPurl();
82
83// Parameters:
84
85// Returns:
87 char* getWSEPurl();
88
89// Function: ChannelMessageSend.get
90
91// return the json script
92
93// Prototype:
94// void ChannelMessageSend::get();
95
96// Parameters:
97
98// Returns:
100 char* get();
101};
102
103#endif
ChannelMessageSend
Definition channel_message_send.h:7
ChannelMessageSend::set
void set(const char *channelId, const char *dataComponent, bool silent)
Definition channel_message_send.cpp:18
ChannelMessageSend::get
char * get()
Definition channel_message_send.cpp:99
ChannelMessageSend::getWSEPurl
char * getWSEPurl()
Definition channel_message_send.cpp:82
ChannelMessageSend::getEPurl
char * getEPurl()
Definition channel_message_send.cpp:65
ChannelMessageSend::~ChannelMessageSend
~ChannelMessageSend()
Definition channel_message_send.h:41