Skip to content

Advert parser is non compliant with protocol #17

@jbrazio

Description

@jbrazio

The protocol defines the payload of an advert as:

Field Size (bytes) Description
flags 1 specifies which of the fields are present, see below
latitude 4 (optional) decimal latitude multiplied by 1000000, integer
longitude 4 (optional) decimal longitude multiplied by 1000000, integer
feature 1 2 (optional) reserved for future use
feature 2 2 (optional) reserved for future use
name rest of appdata name of the node

The current parser (and AFAIK the mobile app) is not checking the flags bit and it's not parsing the feat1 and feat2 fields, it considers all app data as "name" which is incorrect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions