Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:door_control_api [2016/08/08 15:02]
127.0.0.1 external edit
en:door_control_api [2020/07/29 11:12] (current)
yjjung [BS2DoorSensor]
Line 35: Line 35:
     uint8_t port;     uint8_t port;
     uint8_t switchType;     uint8_t switchType;
-    uint8_t reserved[2];+    ​uint8_t apbUseDoorSensor;​​  
 +    ​uint8_t reserved[1];
 } BS2DoorSensor ; } BS2DoorSensor ;
 </​code>​ </​code>​
Line 49: Line 50:
 |1 |Normally closed ​ | |1 |Normally closed ​ |
 </​WRAP> ​ </​WRAP> ​
-4. //​reserved//​ \\ +4. //​​apbUseDoorSensor//​​ \\   
 +Decides whether to use a door sensor when using Global APB. \\ 
 +Should be used with useGlobalAPB in [[configuration api#​​BS2AuthConfig|BS2AuthConfig]] \\ \\  
 + 
 +5. //​reserved//​ \\ 
 Reserved space. \\ \\ Reserved space. \\ \\
 ==== BS2ExitButton ==== ==== BS2ExitButton ====
Line 155: Line 160:
 </​code>​ </​code>​
 1. //doorID// \\  1. //doorID// \\ 
-Door ID.\\ \\ +Door ID. For V1 devices, ID should be defined less than 65535. \\ \\ 
 2. //name// \\  2. //name// \\ 
-Name of the door that will be displayed on the BioStar application.\\ \\+Name of the door that will be displayed on the BioStar application. For V1 devices, name can't be defined. \\ \\
 3. //​entryDeviceID//​ \\  3. //​entryDeviceID//​ \\ 
 Entry device ID.\\ \\ Entry device ID.\\ \\