Files
ArduinoProps/src/Stm32Nucleo144Prop.cpp
T
fauresystems 10a766453f Fix library ARCH issues
stm32duino / Arduino_Core_STM32 can't be compiled with Arduino Bridge/Ethernet/WiFi libraries.
2020-06-26 19:02:05 +02:00

25 lines
675 B
C++

/*
Name: Stm32Nucleo144Prop.cpp
Author: Faure Systems <dev at faure dot systems>
Editor: https://github.com/fauresystems
License: MIT License (c) Faure Systems <dev at faure dot systems>
Prop for Arduino with Ethernet shield.
*/
#if defined(ARDUINO_ARCH_STM32)
#include "Stm32Nucleo144Prop.h"
Stm32Nucleo144Prop::Stm32Nucleo144Prop(const char* client_id, const char* in_box, const char* out_box, const char* broker, const int port)
: Prop(client_id, in_box, out_box, broker, port)
{
_client.setClient(_ethernetClient);
}
void Stm32Nucleo144Prop::begin(void(*on_message)(String))
{
if (on_message) onInboxMessageReceived = on_message;
}
#endif