36
6.1 A ppendix : Web services
These are the supported Web services for the
generic_server
application to command and control the SBL10e:
Examples syntax with CUR L tool:
reboot the device:
curl --user "<USE RNAM E >:<P ASSW ORD >" -i -X P UT "http://<D E V I C E _I P _AD D R>/api/v1/sys/power? state= rebooting"
get device state & color:
curl --user "<USE RNAM E >:<P ASSW ORD >" -X GE T "http://<D E V I C E _I P _AD D R>/api/v1/leds/light"
get device firmware version:
curl --user "<USE RNAM E >:<P ASSW ORD >" -X GE T "http://<D E V I C E _I P _AD D R>/api/v1/software/version"
GET POST PUT DELET
E
api / v1/ s ys / power
yes
<s t at e>=r eboot i ng
" "
Reboot t he devi ce
1. 10. 13
api / v1/ s of t war e/ ver s i on
yes
None
i . e. : {" val ue" : " 1. 10. 13" }
Get t he devi ce del i ver y
s of t war e ver s i on
1. 10. 13
api / v1/ s of t war e/ l abel
yes
None
{" val ue" : " bm0032_gener i c_s er ver " }
Get t he devi ce del i ver y
s of t war e l abel
1. 10. 13
api / v1/ s ys / s n
yes
PSN Shor t r epr es ent at i on: i . e. :
{" val ue" : " 01320- 00004" }
Get t he devi ce SN
1. 10. 13
api / v1/ s ys / model - name
yes
None
{" val ue" : " SBL10e" }
Get t he devi ce model name
1. 10. 13
api / v1/ s ys / manuf act ur er
yes
None
{" val ue" : " Qeedj i " }
Get t he manuf act ur er
1. 10. 13
api / v1/ s ys / manuf act ur er - ur l
yes
None
{" val ue" : " www. qeedj i . t ech" }
Get Web Si t e of
manuf act ur er
1. 10. 13
api / v1/ s ys / uui d
yes
None
Uui d s t r i ng val ue: <uui d> = <ps n>-
<48x0>- <mac- 48>
i . e. :
{" val ue" : " 08400004- 0000- 0000- 0000-
001ce6024cad" }
Get t he devi ce UUI D
1. 10. 13
api / v1/ wpan1/ mac
yes
None
Bl uet oot h MAC addr es s val ue us er
f or mat t ed:
i . e. : {" val ue" : " db: f 0: 8c: 72: 64: a3" }
Get t he devi ce Bl uet oot h
MAC addr es s
1. 10. 13
api / v1/ l eds / l i ght
yes
None
Get ( pl ai n t ext , s epar at or CR) :
i . e. :
{" s t at e" : " s t eady" , " col or " : " bl ue" }
<s t at e>= of f | s t eady | f l as hi ng
<col or >=r ed | or ange | bl ue | yel l ow |
gr een
Get bus yl i ght l ed col or
and s t at e
1. 10. 13
api / v1/ s ys / dat et i me
yes
None
{" val ue" : " 2021- 08- 11T06: 09: 58- 02: 30" } Get bus yl i ght dat e and
t i me
1. 10. 13
Webs er vi ce pat h
HTTP met hod
Quer y s t r i ng par amet er s
Body
Funct i on
Fr om t he
gener i c_s er ver
appl i cat i on
ver s i on
Содержание SBL10e
Страница 1: ...U ser manual SBL10 e generic_ server 1 11 10 0 0 2A...
Страница 4: ...4 Part I Description and installation...
Страница 6: ...6 1 1 1 Device dimensions...
Страница 13: ...13 Part II A pplicative user interface...
Страница 15: ...15 Part III A dministration console user interface...
Страница 30: ...30 Part IV T echnical information...
Страница 33: ...33 Part V Contacts...
Страница 35: ...35 Part V I A ppendix...