liblightify
lightify_node Struct Reference
Collaboration diagram for lightify_node:

Data Fields

struct lightify_ctxctx
 
struct lightify_nodenext
 
struct lightify_nodeprev
 
uint64_t node_address
 
uint16_t zone_address
 
uint16_t group_address
 
enum lightify_node_type node_type
 
char * name
 
int red
 
int green
 
int blue
 
int white
 
int cct
 
int brightness
 
int is_on
 
enum lightify_node_online_state online_status
 
int is_stale
 

Detailed Description

Information about the nodes (e.g. lamps) kind of cache, will reflet state when last queried.

Definition at line 43 of file node.c.

Field Documentation

§ blue

int blue

blue value

Definition at line 65 of file node.c.

§ brightness

int brightness

brightness

Definition at line 69 of file node.c.

§ cct

int cct

CCT

Definition at line 67 of file node.c.

§ ctx

struct lightify_ctx* ctx

pointer to the context

Definition at line 46 of file node.c.

§ green

int green

green value

Definition at line 64 of file node.c.

§ group_address

uint16_t group_address

Group address

Definition at line 55 of file node.c.

§ is_on

int is_on

lamp on/off status. (0=off, 1=on, -1=unknown)

Definition at line 71 of file node.c.

§ is_stale

int is_stale

do we have confidence in the node status? Set to 1 if we did not get updated information on this node or a command

Definition at line 77 of file node.c.

§ name

char* name

name – 16 bytes max, but we'll allocate memory for it.

Definition at line 61 of file node.c.

§ next

struct lightify_node* next

Definition at line 49 of file node.c.

§ node_address

uint64_t node_address

MAC of node

Definition at line 53 of file node.c.

§ node_type

enum lightify_node_type node_type

lamp type

Definition at line 58 of file node.c.

§ online_status

enum lightify_node_online_state online_status

Definition at line 72 of file node.c.

§ prev

struct lightify_node* prev

Definition at line 50 of file node.c.

§ red

int red

red value

Definition at line 63 of file node.c.

§ white

int white

white value

Definition at line 66 of file node.c.

§ zone_address

uint16_t zone_address

Zone address (16 bit short ZLL address)

Definition at line 54 of file node.c.


The documentation for this struct was generated from the following file: