Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setConfiguration monitoring fails - wrong variable type #1221

Closed
mpsd opened this issue May 30, 2022 · 2 comments
Closed

setConfiguration monitoring fails - wrong variable type #1221

mpsd opened this issue May 30, 2022 · 2 comments
Assignees
Labels

Comments

@mpsd
Copy link

mpsd commented May 30, 2022

  • App build number: 2.4.8 (20408019)
  • Android version: 12
  • Device: Google Pixel4a
  • Installation source: Google Play Store

Hi team,

thank you for developing owntracks.

While trying to set "monitoring" mode to "2" via MQTT cmd setConfiguration I'll get the following error on my phone:

2022-05-30 15:47:13.604 E Preferences: Tried to import monitoring but value is wrong type. Expected: org.owntracks.android.support.MonitoringMode, given java.lang.Integer``

The MQTT message is (anonymized):

mosquitto_pub -m '{"_type":"cmd", "action":"setConfiguration", "configuration": {"_type": "configuration", "monitoring": 2}}'``

The monitoring mode is set to Silent -1 and I'd like to get location updates only when needed. I have tried cmd reportLocation as well, but didn't get any reported data. Thus I'm trying to activate monitoring mode remotely.

Can you please help?

Thanks and best regards
Markus

@growse
Copy link
Collaborator

growse commented May 30, 2022

Looks like a regression, thanks for picking up.

@growse growse added the bug label May 30, 2022
@growse growse self-assigned this May 30, 2022
@AlenHodnik
Copy link

Having same problem here. Samsung s22.

@growse growse closed this as completed in 0ff3fd0 Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants