Thanks so much for your help Ricardo, it is very much appreciated.
I need to be confident I can use NSB AppStudio for my project before I commit to it and purchase it.
When I run the code you provided I get an error:
Uncaught TypeError: Cannot read property 'scan' of undefined. line 2 column 12.
I am just not familiar enough with the product to be able to diagnose this error.
I am using an Android device.