Skip to content

Numbers encoded as strings #14

@huckIeberry

Description

@huckIeberry

Describe the bug
Keys of type boolean, float or integer are encoded as strings in the mqtt payload.

To Reproduce
Steps to reproduce the behavior:

  1. Subscribe to your topic on your mqrt broker
  2. In the LabLog app add a new entry "+ New Key"
  3. Assign a key name
  4. Click on "No Type"
  5. Select "Float" or " Integer" as the type
  6. Click on "Create Key"
  7. Return to the app's main screen
  8. Click on the "+" symbol
  9. Select the newly generated key
  10. Add a value
  11. Click on "Submit & close"
  12. Look at the payload of the published message on the mqtt client

Expected behavior
A float or integer value should be encoded accordingly, i.e. not as a string, i.e. without the double quotes.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • LabLog version 1.15

Smartphone (please complete the following information):

  • Device: Samsung A52
  • OS: Android 15

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions