8 namespace modbus_controller {
14 [
this](
int function_code,
int address) { this->
trigger(function_code, address); });
22 [
this](
int function_code,
int address) { this->
trigger(function_code, address); });
30 [
this](
int function_code,
int address) { this->
trigger(function_code, address); });
void add_on_offline_callback(std::function< void(int, int)> &&callback)
Set callback for offline changes.
void add_on_online_callback(std::function< void(int, int)> &&callback)
Set callback for online changes.
ModbusCommandSentTrigger(ModbusController *a_modbuscontroller)
ModbusOnlineTrigger(ModbusController *a_modbuscontroller)
void trigger(Ts... x)
Inform the parent automation that the event has triggered.
void add_on_command_sent_callback(std::function< void(int, int)> &&callback)
Set callback for commands.
Implementation of SPI Controller mode.
ModbusOfflineTrigger(ModbusController *a_modbuscontroller)