Octave edge ORP - sensor trigger from the cloud

Using a Python ORP remote device

I’m assuming that when an obj.create_sensor() is called and the Octave Web UI displays

image

That pressing “TRIGGER” should cause the remote devices callback function to be called?

When I press “TRIGGER” in the WP7702 log i see

Jan  6 00:16:36 swi-mdm9x28-wp user.info Legato:  INFO | avcDaemon[1157]/avcDaemon T=main | coap.c CoapMessageHandler() 234 | Rx Msg from server: code 3 streamStatus 0 contentType 60 length 68
Jan  6 00:16:36 swi-mdm9x28-wp user.info Legato:  INFO | cloudInterface[1176]/cloudcomp T=main | av.c coapHandler() 147 | PATH: /cloudInterface/dh/cmd
Jan  6 00:16:36 swi-mdm9x28-wp user.info Legato:  INFO | avcDaemon[1157]/avcDaemon T=main | coap.c le_coap_SendResponse() 412 | Response: CoAP response from app
Jan  6 00:16:36 swi-mdm9x28-wp user.info Legato:  INFO | cloudInterface[1176]/cloudcomp T=main | main.c ExecCommand() 298 | Server sent command: {"t":2,"i":62565,"r":{"/remote/sensors/uplinkMeasured/trigger":1}}
Jan  6 00:16:36 swi-mdm9x28-wp user.info Legato:  INFO | cloudInterface[1176]/cloudcomp T=main | operation.c RunSetDefaultValue() 370 | admin_SetNumericDefault("/app/remote/sensors/uplinkMeasured/trigger", 1.000000)
Jan  6 00:16:36 swi-mdm9x28-wp user.warn Legato: -WRN- | dataHub[1198]/dataHub T=main | resource.c res_SetDefault() 1243 | Setting default value to incompatible data type numeric on resource of type trigger.
Jan  6 00:16:36 swi-mdm9x28-wp user.info Legato:  INFO | cloudInterface[1176]/cloudcomp T=main | operation.c RunPushValue() 339 | admin_PushNumeric("/app/remote/sensors/uplinkMeasured/trigger",0, 1.000000)

I don’t see anything at all on the WP7702 serial port.

Any ideas - is this expected behaviour?

Thanks in advance

John

Hi John,

This appears to be the root cause of the bug. The value should be “1”, not “1.000000”

admin_SetNumericDefault("/app/remote/sensors/uplinkMeasured/trigger", 1.000000)

I will open a JIRA ticket on this issue and will try to see if I can workaround the issue. What firmware is on the device? 1.0 or 0.4.0

Hi David
I am currently using the following .spk sent to me by Benoit. It is the only FW that I have that supports ORP at all

module-2.1.0.wp77xx.spk

I have tried the following from the mangOH site - it doesn’t have the ORP functionality

yellow_wp77xx_0.4.0-octave.spk

I have tried an Octave FOTA and have not yet succeeded. However I am trying again (below) and I’ll leave it all day to see if it works
image