sketchbook
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
BlinkingSwitch_SWBB-TL_semitransparent.ino File Reference
#include <avr/wdt.h>
#include <PJONInteractiveRouter.h>

Macros

#define DRAGINO
 
#define ENABLE_SWBB_DEBUG
 
#define SENSOR   "owp:sw:db:v1"
 
#define READ_INFO   0x01
 
#define READ_DEBUG   0x99
 
#define HEART_LED   A2
 
#define BUILTIN_LED   HEART_LED
 
#define SERIAL   Console
 
#define OWPJON_PIN   4
 
#define PJON_INCLUDE_TL
 
#define PJON_MAX_PACKETS   3
 

Functions

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)
 

Variables

unsigned long time_last_message
 
unsigned long count_PJON_CONNECTION_LOST = 0
 
unsigned long count_PJON_PACKETS_BUFFER_FULL = 0
 
unsigned long count_PJON_CONTENT_TOO_LONG = 0
 
StrategyLink< SoftwareBitBang > link1
 
StrategyLink< ThroughLora > link2
 

Macro Definition Documentation

#define BUILTIN_LED   HEART_LED
#define DRAGINO
#define ENABLE_SWBB_DEBUG
#define HEART_LED   A2
#define OWPJON_PIN   4
#define PJON_INCLUDE_TL
#define PJON_MAX_PACKETS   3
#define READ_DEBUG   0x99
#define READ_INFO   0x01
#define SENSOR   "owp:sw:db:v1"
#define SERIAL   Console

Function Documentation

void error_handler ( uint8_t  code,
uint16_t  data,
void *  custom_pointer 
)
void loop ( void  )

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 ( ,
(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 
)
void setup ( void  )

Arduino IDE: put your setup code here, to run once.

Variable Documentation

unsigned long count_PJON_CONNECTION_LOST = 0
unsigned long count_PJON_CONTENT_TOO_LONG = 0
unsigned long count_PJON_PACKETS_BUFFER_FULL = 0
PJONAny bus1& link1
PJONAny bus2& link2
unsigned long time_last_message