Methods
parseData($super, data) → {Object}
Extract data from the message. The data are got such as:
- lat: tokens[1]
- lon: tokens [2]
- alt: tokens[3]
Parameters:
| Name | Type | Description |
|---|---|---|
$super |
function | the parseData super method |
data |
Object | the data to parse |
Returns:
the parsed data
- Type
- Object
Example
<p>{<br> lat:43.61758626,<br> lon: 1.42376557,<br> alt:100<br>}</p>
parseTimeStamp($super, data) → {number}
Extracts timestamp from the message. The timestamp is the first token got from split(',')
Parameters:
| Name | Type | Description |
|---|---|---|
$super |
function | the parseTimeStamp super method |
data |
string | the data to parse |
Returns:
the extracted timestamp
- Type
- number