104
1
SW
Description:
Get local storage encrypted flag
Arguments:
devUrl
– string must be mmc:// or usb://
Return:
bEncrypt
– boolean, true, if local storage is encrypted
Function:
Description:
Get local storage encrypted flag
Arguments:
devUrl
– string must be mmc:// or usb://
Return:
bEncrypt
– boolean, true, if local storage is encrypted
Function:
Description:
Get device MAC address
Return:
jsonMAC
– json string representing MAC address value
{"mac":"A8 40 41 16 47 D6"}
Function:
Description:
Get device Registration Key code
Return:
jsonMAC
– json string representing Registration Key code
{"regkey":"A269FCEAB4F1C20B"}
9.2.11
PANEL FUNCTIONS
Panel functions allows the user to setup firmware and general PLAYER configurations.
Functions
Function:
Description:
Set the panel lock mode and password
Arguments:
lockMode
– string indicating lock mode. Possible options are UNLOCK ALL, UNLOCK
USER, LOCK ALL password
– string with the LOCK/UNLOCK password. Max length is
8. Valid characters are: 0-9 A-Z
.
+ -
bEncrypt = DEV_isEncrypted(devUrl)
bEncrypt = DEV_mac()
bEncrypt = DEV_regkey()
PANEL_set=function(lockMode, password)
require "PLAYER"
device=PLAYER.ne
w()
print(device.DEV_mac())
require "PLAYER" device=PLAYER.new()
print(device.DEV_regkey())