Appearance
discovery-client
Discovers network-attached RESOL devices (like e.g. DL2Plus or DeltaSol MX Plus) and prints information about them.
Description
This script uses the netDiscover()
function to discover network-attached RESOL devices. For each unique device found that way it uses the fetchDeviceInformation()
function to gather additional information about that device. Once all information is collected, the script prints it out like in the example below.
Since the script does not need an actual RESOL VBus data source to work, it can be run using a virtual
connection.
Service
None
Example
Using command line arguments only
❯ bin/resol-vbus-core-toolbox.ts --virtual --script scripts/discovery-client.ts
- DL2Plus-40A36Bxxxxxx:
- Device-Info:
- vendor: RESOL
- product: DL2Plus
- serial: 40A36Bxxxxxx
- version: 2.0.7
- build: rc1
- name: DL2Plus-40A36Bxxxxxx
- features: vbus,logging,vbus2,wifi,vpn
- Addresses:
- 192.168.xxx.xxx
- fe80::42a3:6bff:fexx:xxxx%en0
- fe80::42a3:6bff:fexx:xxxx%en11
- MXP-40A36Bxxxxxx:
- Device-Info:
- vendor: RESOL
- product: DeltaSolMxPlus
- serial: 40A36BXXXXXX
- version: 1.0.0
- build: rc1
- name: MXP-40A46Bxxxxxx
- features: vbus,logging,wifi,vpn
- Addresses:
- 192.168.xxx.xxx
- fe80::42a3:6bff:fexx:xxxx%en0
- fe80::42a3:6bff:fexx:xxxx%en11
Using a config file
Config:
typescript
export default defineConfig({
connections: [{
kind: 'virtual',
}],
scripts: [
import('../scripts/discovery-client'),
],
});
Running it in the toolbox:
shell
❯ bin/resol-vbus-core-toolbox.ts --config configs/above-config-saved-to-file.ts
- DL2Plus-40A36Bxxxxxx:
- Device-Info:
- vendor: RESOL
...