Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

14
LINES

< > BotCompany Repo | #1008252 // waitForPhone - wait for an Android phone to come online in subnet

JavaX fragment (include)

// returns IP
static S waitForPhone() {
  print("Waiting for phone to come online...");
  S phoneIP = null;
  while licensed {
    L<S> possiblePhones = empBlast_findAndroidPhone();
    if (l(possiblePhones) > 1) print("Possible phones: " + struct(possiblePhones));
    phoneIP = first(possiblePhones);
    if (phoneIP != null) break;
    sleepSeconds(1);
  }
  print("Using phone: " + phoneIP);
  ret phoneIP;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1008252
Snippet name: waitForPhone - wait for an Android phone to come online in subnet
Eternal ID of this version: #1008252/1
Text MD5: 9e616a18e7ef387fd8c5f86c195a2d9c
Author: stefan
Category: javax / networking
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-03 12:44:32
Source code size: 425 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 456 / 498
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)