faybl-client
v4.0.0-rc.5
Published
Faybl JavaScript Client
Downloads
62
Readme
Faybl Client JS
Faybl JavaScript Client
Getting Started
import { createClient } from 'faybl-client/browser';
// For nodejs version, remove '/browser' above
const client = createClient({ tenantUrl: 'atenant.faybl.online' });
await client.conf.asset.create({ id: 'test' });
createClient
options
tenantUrl
confUrl
dataHistoryUrl
mqttUrl
noMqtt
The browser version also has:
pahoMqttOptions
Client structure
conf
: All entities below havecreate
,read
,update
,delete
.asset
assettype
channel
channeltype
config
configtype
procedure
proceduretype
rule
thing
thingtype
trigger
subscribe
: No entity. Subscribes to changes in the data model.unsubscribe
: No entity. Unsubscribes above subscription.
channel
subscribe
unsubscribe
publish
read
mqttClient
close
License
Hippocratic 2.1