Skip to content

Cannot subscribe to Energy/Level and Comm/Peers #9

@ekleinpeter

Description

@ekleinpeter

First of, kudos for great work achieved with this plugin. :-)

I have an issue, though : subscription to certain events looks unavailable (I'm currently using version ^2.2.0 of the plugin).
Namely, in my case, the Battery level events and connection notification events for the Movesense MD sensor.

According to YAML specification, a subscription route exists for both : "/System/Energy/Level" and "/Comm/Ble/Peers" :

I've tried many combinations of Mds, MdsAsync, subscribe or post to "/Subscription" endpoint, on iOS or Android, etc. and I'm getting an onSubscriptionError every time.

Example :

MdsAsync.subscribe(
  Mds.createSubscriptionUri(serial,"/System/Energy/Level"),
  '{}',
);

throws an MdsError, code 404, which likely indicates that the API routes don't exist...
Can you confirm that it is the case and whether you intend to implement them in the future ?

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