1

I have installed 1.9.4 Movesense-hello_world_app.zip through movesense DFU mechanism and update succeeded. Making a GET request to hello world worked correctly and got the following response.

[SDS RESPONSE] type: GET status: OK 
header: {"TaskId": 46, "Content-Type": "application/json", "Uri": "suunto://184730000240/Sample/HelloWorld", "Content-Length": 41, "Reason": "OK", "Status": 200} 
body: {"Content": {"Greeting": "Hello World!"}}

However, subscribed returned 404 error.( following is the log snippet)

2019-11-17 17:25:42.719 18495-18538/com.project19.movesensor I/Komposti: [SDS REQUEST] type: POST uri: suunto://MDS/EventListener contract: {"Uri": "184730000240//Sample/HelloWorld/"}
2019-11-17 17:25:42.719 18495-18495/com.project19.movesensor D/StartTracking: success to access Hello world app
2019-11-17 17:25:42.719 18495-18542/com.project19.movesensor I/Komposti: Adding EventListener for path: 184730000240//Sample/HelloWorld/
2019-11-17 17:25:42.720 18495-18566/com.project19.movesensor D/BleManager: sendCb(10000001), 30 bytes
2019-11-17 17:25:42.737 18495-20297/com.project19.movesensor D/BleManager: Send complete
2019-11-17 17:25:42.806 18495-18610/com.project19.movesensor D/BleManager: Received data: WB_DATAMSG_CLIENT_ON_GET_RESOURCE_RESULT, type: 2, direct msg, msgLen: 8, reqId: 11776, size: 14
2019-11-17 17:25:42.806 18495-18542/com.project19.movesensor E/Komposti: [SDS RESPONSE] type: POST status: NOT_FOUND header: {"TaskId": 47, "Uri": "suunto://MDS/EventListener", "Content-Length": 0, "Reason": "NOT_FOUND", "Status": 404}

what could be the reason ? Any path is wrong. The app code seems to support subscription and notification.

howie
  • 2,587
  • 3
  • 27
  • 43
Sesha R
  • 13
  • 3

1 Answers1

0

It seems that you have extra slash in the path in the beginning (after serial number below):

184730000240//Sample/HelloWorld/

It should be in the form of

184730000240/Sample/HelloWorld/

Let us know if that helps.

P1C1Z
  • 56
  • 2
  • Ah, I noticed that you already got answered in Bitbucket issues. Glad that it helps. You want to track this here or in Bitbucket? – P1C1Z Nov 19 '19 at 10:56