183 {
184 core::SNodeC::init(argc, argv);
185
186#ifdef CONFIG_MQTTSUITE_STORE_TCP_IPV4
188 config->Remote::setPort(1883);
189 config->setDisableNagleAlgorithm();
191 });
192#endif
193
194#ifdef CONFIG_MQTTSUITE_STORE_TLS_IPV4
196 config->Remote::setPort(1883);
197 config->setDisableNagleAlgorithm();
199 });
200#endif
201
202#ifdef CONFIG_MQTTSUITE_STORE_TCP_IPV6
204 config->Remote::setPort(1883);
205 config->setDisableNagleAlgorithm();
207 });
208#endif
209
210#ifdef CONFIG_MQTTSUITE_STORE_TLS_IPV6
212 config->Remote::setPort(1883);
213 config->setDisableNagleAlgorithm();
215 });
216#endif
217
218#ifdef CONFIG_MQTTSUITE_STORE_UNIX
221 });
222#endif
223
224#ifdef CONFIG_MQTTSUITE_STORE_UNIX_TLS
227 });
228#endif
229
230#if defined(CONFIG_MQTTSUITE_STORE_TCP_IPV4) && defined(CONFIG_MQTTSUITE_STORE_WS)
232 config->Remote::setPort(8080);
233 config->setDisableNagleAlgorithm();
235 });
236#endif
237
238#if defined(CONFIG_MQTTSUITE_STORE_TLS_IPV4) && defined(CONFIG_MQTTSUITE_STORE_WSS)
240 config->Remote::setPort(8088);
241 config->setDisableNagleAlgorithm();
243 });
244#endif
245
246#if defined(CONFIG_MQTTSUITE_STORE_TCP_IPV6) && defined(CONFIG_MQTTSUITE_STORE_WS)
248 config->Remote::setPort(8080);
249 config->setDisableNagleAlgorithm();
251 });
252#endif
253
254#if defined(CONFIG_MQTTSUITE_STORE_TLS_IPV6) && defined(CONFIG_MQTTSUITE_STORE_WSS)
256 config->Remote::setPort(8088);
257 config->setDisableNagleAlgorithm();
259 });
260#endif
261
262#if defined(CONFIG_MQTTSUITE_STORE_UNIX) && defined(CONFIG_MQTTSUITE_STORE_WS)
265 });
266#endif
267
268#if defined(CONFIG_MQTTSUITE_STORE_UNIX_TLS) && defined(CONFIG_MQTTSUITE_STORE_WSS)
271 });
272#endif
273
274 return core::SNodeC::start();
275}
static SocketClient< mqtt::mqttstore::SocketContextFactory > startClient(const std::string &instanceName, const std::function< void(typename SocketClient< mqtt::mqttstore::SocketContextFactory >::Config *)> &configurator)
static void createWSConfig(net::config::ConfigInstance *config)