Error sensor type

Everything about programming the platform and using the Waspmote API
Post Reply
Happy_code
Posts: 17
Joined: Wed Jul 17, 2019 12:35 pm
Company: Stockholm University

Error sensor type

Post by Happy_code » Wed Aug 07, 2019 3:32 pm

Hello,

I have smart water extreme (EU 868LP) with sensor probe 9485-p connects to socket C;
so I should get sensor tag: WTRX_PHEHT_TC2_C ; WTRX_PHEHT_PH_C; and WTRX_PHEHT_RX_C.

I did:

Aqualabo_PHEHT mySensor(XTR_SOCKET_C);
mySensor.ON();
frame.createFrame(BINARY);
frame.addSensor(WTRX_PHEHT_TC2_C, mySensor.sensorPHEHT.temperature);
frame.addSensor(WTRX_PHEHT_PH_C, mySensor.sensorPHEHT.pH);
frame.addSensor(WTRX_PHEHT_RX_C, mySensor.sensorPHEHT.redox);

The code was complied correctely and is uploaded to the system as well. But I keep get error notification on serial monitor:
[FRAME] Error sensor type mismatch for index 141: api says 0 vs user says 2
[FRAME] Error sensor type mismatch for index 146: api says 0 vs user says 2

I have no clue why it does that? meanwhile, if I create frame.createFrame(ASCII), then the meshlium simply cannot receive anything.

Best Regards,

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: Error sensor type

Post by libelium-dev » Thu Aug 08, 2019 7:42 am

Hi,

It's just a warning message about a type mismatch, it's not important for the behavior of the node. In any case, are you working with the las API version? We recommend downloading the last IDE version that already contains the last API from here,
http://www.libelium.com/development/plu ... lications/

For the ASCII frame issue, you need to declare the frame type with function,

Code: Select all

  frame.setFrameType(INFORMATION_FRAME_WTR_XTR);
Hope this helps.

Regards.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest