so I'm working with a raspberry pi pico w and the neo-6m gps module, I am trying to print my data on my serial monitor but this I get a "none" output here's my code,
from machine import UART, Pin #imports the UART and Pin
import time
gps_module = UART(1, baudrate=9600, tx=Pin(4), rx=Pin(5))
if gps_module :
print("getting data")
#Used to Store NMEA Sentences
buff = bytearray(255)
TIMEOUT = False
#store the status of satellite is fixed or not
FIX_STATUS = False
#Store GPS Coordinates
latitude = ""
longitude = ""
satellites = ""
gpsTime = ""
#function to get gps Coordinates
def getPositionData(gps_module):
global FIX_STATUS, TIMEOUT, latitude, longitude, satellites, gpsTime
#run while loop to get gps data
#or terminate while loop after 5 seconds timeout
timeout = time.time() + 8 # 8 seconds from now
while True:
gps_module.readline()
buff = (gps_module.readline())
print(buff)
break
getPositionData(gps_module)
I did the connection well(I think), the led in the gps module is blinking as but I can't pick up any data