sendDiscoverHello static method

dynamic sendDiscoverHello(
  1. String ip
)

Implementation

static sendDiscoverHello(String ip) async {
  Uri url = Uri.http('/$ip:$PORT', '/secure-control/discover-hello',
      {'payload': 'discover-hello'});
  return await http
      .get(url)
      .timeout(const Duration(seconds: DISCOVER_TIMEOUT))
      .catchError((e) {
    //print('Failed sending discover message: $e');
  });
}