GNSS Functions error

Hello!

I would like to get GNSS data like longitude and lattitude. I write this code based on other samples:

from cellulariot import cellulariot
import time
node = cellulariot.CellularIoTApp()
node.setupGPIO()

node.disable()
time.sleep(1)
node.enable()
time.sleep(0.5)
node.turnOnGNSS()
time.sleep(5)

print("latitude: "+str(node.getLatitude()))
print("longitude: "+str(node.getLatitude()))
time.sleep(0.5)
print("Turning off GNSS")
node.turnOffGNSS()

But I only get this outpot

Sixfab Raspberry Pi Cellular IoT Application Shield Class initialized!
BG96 module disabled!
BG96 module enabled!
Turning on GNSS
OK
OK

+CME ERROR: 516

latitude: 0
OK

+CME ERROR: 516

longitude: 0
Turn off
Turning off GNSS
OK

I googled the error and get:
CMS ERROR: 516 Invalid length

But what does it mean? How can I solve the problem?

Thanks for your help!

After turning on the GNSS you will to wait for the GNSS to fix.
Once the GNSS is fixed you can check the position.

The provided script waits for 5 sec which is not enough. You can try minimum 30 secs.