if I run the same code again it should show proper data?
No - after having sent that code it'll just suddenly start producing data when it gets a lock.
I am powering the device using usb cable from the computer. Will that not give enough power for the GPS to function?
You're using RAK's little breakout board? If so that provides only 3.3v as far as I remember so while with the 8211's supercap USB could provide enough power, it's not actually supplying any power at all.
I'd say it's safest to attach a normal 3.7v LiPo battery to the 3 pin power plug. But you should ask RAK for this kind of support as I don't completely know their board.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
No - after having sent that code it'll just suddenly start producing data when it gets a lock.
You're using RAK's little breakout board? If so that provides only 3.3v as far as I remember so while with the 8211's supercap USB could provide enough power, it's not actually supplying any power at all.
I'd say it's safest to attach a normal 3.7v LiPo battery to the 3 pin power plug. But you should ask RAK for this kind of support as I don't completely know their board.