secure_control_protocol 0.0.3 secure_control_protocol: ^0.0.3 copied to clipboard
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>
Parameter | Description |
---|---|
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 | Create 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.