getConnection method
Implementation
Future<ConnectionInfo> getConnection() async {
final command = 5;
final data = await _write('{"c":$command}', _wifiRequest, _wifiResponse, command: command);
return ConnectionInfo(
name: data['e'],
ip: data['i'],
signalStrength: data['s'],
macAddress: data['m'],
isOpen: data['p'] == 0,
);
}