ESP8266 Centre + NB
include/room_info.h
浏览该文件的文档.
1 #ifndef __ROOM_INFO_H__
2 #define __ROOM_INFO_H__
3 
4 #include "driver/uart.h"
5 #include "ets_sys.h"
6 #include "osapi.h"
7 #include "user_interface.h"
8 
9 
10 // ڵľ̬IP
11 #define ROOM_ONE_IP 101
12 #define ROOM_TWO_IP 102
13 #define ROOM_THREE_IP 103
14 #define ROOM_FOUR_IP 104
15 
16 //ocean connect messageId
17 #define ROOM_ONE_NO 0x01
18 #define ROOM_TWO_NO 0x02
19 #define ROOM_THREE_NO 0x03
20 #define ROOM_FOUR_NO 0x04
21 
22 #define DEVICE_1 0x01
23 #define DEVICE_2 0x02
24 #define DEVICE_3 0x03
25 #define DEVICE_4 0x04
26 //..another device
27 
28 
29 #define DEVICE_LIGHT_1 0x01
30 #define DEVICE_LIGHT_2 0x02
31 //....
32 
33 
34 
35 extern int device;
36 extern int command;
37 
38 extern uint8 room;
39 extern uint8 people;
40 extern uint8 temp;
41 extern uint8 humi;
42 extern uint8 noise;
43 
44 
45 
46 
47 #endif
uint8 humi
Definition: room_info.c:6
int command
uint8 room
Definition: room_info.c:3
unsigned char uint8
Definition: c_types.h:43
int device
uint8 temp
Definition: room_info.c:5
uint8 noise
Definition: room_info.c:7
uint8 people
Definition: room_info.c:4