Other Parts Discussed in Thread: Z-STACK
Hi,
Can anyone confirm that it is possible to have only 8 bit weighted application OSAL events due to uint8 event?
From OSAL.h
typedef struct
{
uint8 event;
uint8 status;
} osal_event_hdr_t;
I have nearly used up 8 events and will have to resort to passing parameters to a generic method if this is the case. Seems odd given that the example code lists the bit weighted definitions as hex 16-bit, for example:
// Application Events #define SAMPLETHERMOSTAT_IDENTIFY_TIMEOUT_EVT 0x0001 #define SAMPLETHERMOSTAT_POLL_CONTROL_TIMEOUT_EVT 0x0002 #define SAMPLETHERMOSTAT_EZMODE_TIMEOUT_EVT 0x0004 #define SAMPLETHERMOSTAT_EZMODE_NEXTSTATE_EVT 0x0008 #define SAMPLETHERMOSTAT_MAIN_SCREEN_EVT 0x0010
Using Home 1.2.1
Thanks,
Andy