UNPKG
mediola-aio-gateway
Version:
latest (0.3.0)
0.3.0
0.2.0
0.1.2
0.1.1
0.1.0
Mediola AIO Gateway API
github.com/bergos/mediola-aio-gateway
bergos/mediola-aio-gateway
mediola-aio-gateway
/
examples
/
send-command.js
11 lines
(8 loc)
•
227 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
Gateway
from
'../Gateway.js'
const
gateway =
new
Gateway
(
'http://192.168.1.123'
) gateway.
sendCommand
({
XC_FNC
:
'GetStates'
,
config
:
'1'
}).
then
(
result
=>
{
console
.
log
(result) }).
catch
(
err
=>
console
.
error
(err))