neohub 0.0.3
neohub: ^0.0.3 copied to clipboard
Dart / Flutter API for NeoHub heating controls and plugs from Heatmiser.
/// Example of running the NeoHub
/// Change the Address to the IP address of your hub.
import 'package:neohub/neohub.dart';
const NEOHUB_ADDRESS = '10.0.0.30';
main() async {
final hub = NeoHub(NEOHUB_ADDRESS);
final livedata = await hub.getLiveData();
for (var z in livedata.zones) {
print(z);
}
}