7cd6498470
Aesthetic
23 lines
645 B
C++
23 lines
645 B
C++
/*
|
|
Name: EthernetProps.cpp
|
|
Created: 29/10/2019 09:20:31
|
|
Author: Marie Faure <dev at faure dot systems>
|
|
Editor: https://github.com/fauresystems
|
|
License: MIT License (c) Marie Faure <dev at faure dot systems>
|
|
|
|
Class Props for Arduino with Ethernet shield.
|
|
*/
|
|
|
|
#include "EthernetProps.h"
|
|
|
|
EthernetProps::EthernetProps(const char* client_id, const char* in_box, const char* out_box, const char* broker, const int port)
|
|
: Props(client_id, in_box, out_box, broker, port)
|
|
{
|
|
_client.setClient(_ethernetClient);
|
|
}
|
|
|
|
void EthernetProps::begin(void(*on_message)(String))
|
|
{
|
|
if (on_message) onInboxMessageReceived = on_message;
|
|
}
|