secure_control_protocol 0.0.3

Dart native
Flutter Android iOS

Dart client library for secure-control-protocol devices (see https://github.com/HouseOS/secure-control-protocol)

Secure Control Protocol Client Library written in Dart #

CLI Client #

To only discovers devices:

dart ./bin/scp_client discover -i <IP address from the to be scanned subnet> -m <Subnet Mask in Prefix notation>

To discover devices and afterwards provision them:

dart ./bin/scp_client provision -i <IP address from the to be scanned subnet> -m <Subnet Mask in Prefix notation> -s <SSID of target Wifi> -p <Password of target Wifi> -j <path to JSON>

ParameterDescription
iIP address from the to be scanned subnet
mSubnet Mask in Prefix notation
sSSID of target Wifi
pPassword of target Wifi
jCreate JSON file at the given path containing all provisioned devices for further use

After the provisioning the CLI client has to be connected to the provisioned Wifi.

Now the update of the IP address for the provisioned device has to occur.

dart ./bin/scp_client update -i <IP address from the to be scanned subnet> -m <Subnet mask in Prefix notation> -j <path to JSON with known devices>

After the update the devices can be controlled by addressing them with their device ID. All required data is taken from the JSON with the known devices.

dart ./bin/scp_client control -c <action> -d <device ID> -j <path to JSON with known devices>

License #

SPDX-License-Identifier: GPL-3.0-only

The full version of the license can be found in LICENSE.

1
likes
70
pub points
15%
popularity

Dart client library for secure-control-protocol devices (see https://github.com/HouseOS/secure-control-protocol)

Repository (GitHub)
View/report issues

Documentation

Documentation

Uploader

benjamin.schilling33@gmail.com

License

GPL 3.0 (LICENSE)

Dependencies

args, collection, cryptography, http, test, web3dart

More

Packages that depend on secure_control_protocol