Ublox6 Class
- ID: ublox6
- Name: Grove GPS
- Other Names: U-BLOX 6 SIM28
- Category: gps
- Manufacturer: seeed
- Link: http://www.seeedstudio.com/depot/Grove-GPS-p-959.html
- Connection: uart
- Kit: tsk
UPM support for the U-BLOX 6 GPS module. It is also compatible with the SIM28 GPS module.
Item Index
Methods
Methods
Ublox6
-
uart
Ublox6 object constructor
Parameters:
-
uart
NumberDefault UART to use (0 or 1)
Returns:
dataAvailable
()
Boolean
Checks to see if there is data available for reading
Returns:
True if there is data available for reading
readData
-
buffer
-
len
Reads any available data in a user-supplied buffer. Note: the call blocks until data is available to be read. Use dataAvailable() to determine whether there is data available beforehand, to avoid blocking.
Parameters:
-
buffer
StringBuffer to hold the data read
-
len
NumberLength of the buffer
Returns:
the Number of bytes read
writeData
-
buffer
-
len
Writes the data in the buffer to the device
Parameters:
-
buffer
StringBuffer to hold the data read
-
len
NumberLength of the buffer
Returns:
Number of bytes written
setupTty
-
baud
Sets up proper tty I/O modes and the baud rate. The default baud rate is 9,600 (B9600).
Parameters:
-
baud
Speed_tDesired baud rate
Returns:
True if successful