jacobrosenthal commented on issue #53: Replace currantlabs dep with go-ble.
URL: https://github.com/apache/mynewt-newtmgr/pull/53#issuecomment-363122206
 
 
   I havent seen those disconnects happen again (on the nrf51 anyway.) Ive done 
a bunch of complete upload cycles and further Ive got a little bash script to 
upload a (large) loader over and over again that might be helpful for testing 
that hasnt failed yet.
   
   ```bash
   #!/bin/bash
   
   # run an array of commands COUNTER times, exit if return code
   
   declare -a arr=("newtmgr -c nimble_bleprph image erase" "newtmgr -c 
nimble_bleprph image list" "newtmgr -c nimble_bleprph image upload 
/Users/jacobrosenthal/Downloads/chippd3/bin/targets/split-microbit/loader/apps/bleprph/bleprph.img"
 "newtmgr -c nimble_bleprph image list")
   
   COUNTER=20
   while [  $COUNTER -gt 0 ]; do
       for (( i = 0; i < ${#arr[@]} ; i++ )); do
            printf "\n**** Running: ${arr[$i]} *****\n\n"
   
            # i=0, erase commmand, always returns error code so dont respect
            eval "${arr[$i]}"
                if [ $? -ne 0 ] && [ $i -ne 0 ]
                then
                exit $?
                fi
   
        done
       let COUNTER-=1
   done
   ```
   
   LGTM
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to