![Patlite NE- N-USB Series Скачать руководство пользователя страница 31](http://html1.mh-extra.com/html/patlite/ne-n-usb-series/ne-n-usb-series_general-instruction-manual_4005763031.webp)
USB Controlled Multi-color Signal Beacon User Manual
31
⑦
NE_GetDeviceState
Item
Description
Name
byte[] NE_GetDeviceState ()
Overview
Acquires the LED and alarm status of the connected this product.
Argument
None
Return Value
1
st
byte
:
LED / alarm status
4
th
bit
:
Alarm status 0
:
Stopped 1
:
Sounding
bit 0
:
LED status 0
:
Off 1
:
On
2
nd
byte
:
Error status
4
th
bit
:
Error status 0
:
No error 1
:
Error occurred
If this product is not connected, returns 0.
1
st
byte
2
nd
byte
bit
7
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0
BCD
0
0
0
0/1
0
0
0
0/1
0
0
0
0/1
0
0
0
0
Alarm Status
0
:
Stopped
1
:
Sounding
LED Status
0
:
Off
1
:
On
Error Status
0
:
No error
1
:
Error occurred
Precautions
It is necessary to call “NE_OpenDevice” before calling this function.
Program
Example
int open_state, send_state;
open_state = NE_OpenDevice();
if(open_state == 0){
byte[] state = NE_GetDeviceState();
/* Get Device State */
}
NE_CloseDevice();