RaspberrPi project source code
guowenxue
7 hours ago cd006b9357bcb632a2d4539c086fb93ca6ae23c6
project/lightd/config.h
@@ -28,7 +28,8 @@
typedef struct mqtt_ctx_s
{
    char          devid[32];    /*  device ID */
    char            devid[32];    /*  device ID */
    void           *userdata;      /* user data pointer */
    /* Broker settings  */
    char            host[128];  /* MQTT broker server name  */
@@ -61,6 +62,8 @@
    gpio_t          gpio;         /* gpio information */
    int             light_intval; /* light on interval */
    float           lux_threshold;/* lux threshold value  */
    int             ds18b20;      /* ds18b20 enable or not */
    int             tsl2561;      /* tsl2561 enable or not */
} hwinfo_t;
typedef struct iotd_ctx_s