This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

what is supposed to happen in remote client-server example?

Hi I'm trying the remote client-server example. When I flash the code onto the NRF52832, all the 4 lights are lit. Here's the log i get:

 0> 1) Provision first available device with PB-ADV
 0> 2) Set current client publish handle (corresponding to a known server)
 0> 	 2.1) <address handle>
 0> 3) Start remote scanning
 0> 4) Cancel the remote scanning
 0> 5) Start remote provisioning
 0> 	 5.1) Device number
  < 1
 0> <t:     317274>, main.c,  226, Local provisioning link established
 0> <t:     319026>, main.c,  262, Using static authentication
 0> <t:     329730>, main.c,  273, Static authentication data provided
 0> <t:     337366>, main.c,  244, Provisioning complete! Added 1337 as handle 3
 0> <t:     341308>, main.c,  230, Local provisioning link closed
  < 2
 0> <t:     531169>, main.c,  332, Please enter a valid publish handle: 
  < 3
 0> <t:     606675>, main.c,  342, Handle set 
  < 3
 0> <t:     653362>, main.c,  303, Got event 0
 0> <t:     658258>, main.c,  298, Got remote uuid: AE43D8465F080D3273206E165A8E7199
 0> <t:     658261>, main.c,  299, Device ID: 0
  < 4
 0> <t:     805388>, main.c,  303, Got event 1
  < 5
 0> <t:    1017371>, main.c,  362, Please enter a valid device number: 
  < 0
 0> <t:    1097498>, main.c,  226, Local provisioning link established
 0> <t:    1145134>, main.c,  262, Using static authentication
 0> <t:    1192325>, main.c,  273, Static authentication data provided
 0> <t:    1300545>, main.c,  244, Provisioning complete! Added 1338 as handle 2
 0> <t:    1315598>, main.c,  230, Local provisioning link closed
 0> <t:    1315601>, main.c,  295, The remote link has closed
 0> <t:    1315604>, main.c,  298, Got remote uuid: 00040020E508000079050000C5080000
 0> <t:    1315607>, main.c,  299, Device ID: 0

what is supposed to happen after this point? How do I control my provisioned device? As in if one of my servers, is a light, how can I turn it on once it has been remote provisioned?

Any help is much appreciated. Rahul

Related