#include <avr/wdt.h>
#include <PJONInteractiveRouter.h>
|
PJONInteractiveRouter
< PJONVirtualBusRouter
< PJONSwitch > > | router (2,(PJONAny *[2]){&bus1,&bus2}) |
|
void | setup () |
|
void | loop () |
|
void | sendnotification_function (const uint8_t *const payload, const uint16_t length, const uint8_t receiver_bus, const uint8_t sender_bus, const PJON_Packet_Info &packet_info) |
|
void | error_handler (uint8_t code, uint16_t data, void *custom_pointer) |
|
void | receiver_function (uint8_t *payload, uint16_t length, const PJON_Packet_Info &packet_info) |
|
#define ENABLE_SWBB_DEBUG |
#define PJON_MAX_PACKETS 3 |
#define SENSOR "owp:sw:db:v1" |
void error_handler |
( |
uint8_t |
code, |
|
|
uint16_t |
data, |
|
|
void * |
custom_pointer |
|
) |
| |
OneWirePJON device status update function.
- Returns
- (void)
void receiver_function |
( |
uint8_t * |
payload, |
|
|
uint16_t |
length, |
|
|
const PJON_Packet_Info & |
packet_info |
|
) |
| |
PJONInteractiveRouter<PJONVirtualBusRouter<PJONSwitch> > router |
( |
2 |
, |
|
|
(PJONAny *[2]){&bus1,&bus2} |
|
|
) |
| |
void sendnotification_function |
( |
const uint8_t *const |
payload, |
|
|
const uint16_t |
length, |
|
|
const uint8_t |
receiver_bus, |
|
|
const uint8_t |
sender_bus, |
|
|
const PJON_Packet_Info & |
packet_info |
|
) |
| |
Arduino IDE: put your setup code here, to run once.
unsigned long count_PJON_CONNECTION_LOST = 0 |
unsigned long count_PJON_CONTENT_TOO_LONG = 0 |
unsigned long count_PJON_PACKETS_BUFFER_FULL = 0 |
unsigned long time_last_message |