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

PB remote client server example issue.

I am trying to run pb remote example but i'm stuck at command 3 it only  shows "Got event 0"  not goes further to receive remote uuid.

 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: 118228>, main.c, 178, Local provisioning link established
0> <t: 120232>, main.c, 215, Using static authentication
0> <t: 129646>, main.c, 226, Static authentication data provided
0> <t: 140789>, main.c, 196, Provisioning complete! Added 1337 as handle 0
0> <t: 144532>, main.c, 182, Local provisioning link closed
< 2
0> <t: 244436>, main.c, 276, Please enter a valid publish handle:
< 0
0> <t: 359122>, main.c, 321, Handle set
< 3
0> <t: 461004>, main.c, 254, Got event 0

And sometimes it gives the error "Communication with server failed".

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: 708396>, main.c, 178, Local provisioning link established
0> <t: 709565>, main.c, 215, Using static authentication
0> <t: 718465>, main.c, 226, Static authentication data provided
0> <t: 730243>, main.c, 196, Provisioning complete! Added 1337 as handle 0
0> <t: 734172>, main.c, 182, Local provisioning link closed
< 2
0> <t: 798186>, main.c, 276, Please enter a valid publish handle:
< 0
0> <t: 870274>, main.c, 321, Handle set
< 3
0> <t: 1931964>, pb_remote_client.c, 240, Unable to send message [aop: 0x8065]<t: 1931967>, main.c, 240, Communication with server failed

What's wrong with this?

Thanks in advance.

Related