Wavetrend Water Temperature Integration with TTS

Hi!
I am new to this, and I am using the wavetrend water temperature sensor (Water Temperature Sensor - Alliot Technologies) with TTS.

I have connected the device with TTS, now to set its time interval. Is there anyone who could assist, I am having trouble how could I do it.

Whilst in service the device generally originates messages and the application server does not need to provide a response, however at activation there is a message exchange between
device and application server that is designed to provide the device it’s configuration. This
process needs to succeed for the device to be successfully installed.
An overview of the process is as follows:

  1. On activation the Device sends an Installation Request message (type HEX ‘00’) to the
    Application server.
  2. The Application Server must respond by scheduling a Device Configuration message
    (type HEX ‘01’) using the Network Server downlink mechanism. The Device
    Configuration message will contain the specific configuration for the device together
    with the ‘nonce’ value provided in the Installation Request message.
  3. The Device will respond to the Application Server with an Installation Response
    message (type HEX ‘02’). The Application Server should inspect the ‘error’ field of this
    message to determine success of the installation process.

But I am not sure, where to configure it in TTS.

Reference
image
image

Code:
$raw = sprintf("%s%s%s%08x%s%s%s%s%s%s%s%s%s", “01”, “02”, $sequence, time(),$nonce, $downlink_days, $flags, $scald_threshold, $freeze_threshold, $report_period, $sensor_1_config, $sensor_1_config, $sensor_1_config)
$data = base64_encode(hex2bon($raw));
$json=sprintf("{“downlinks”:[{“frm_payload”:"%s",“f_port”:1,“priority”:“NORMAL”}]}",$data);

$url =sprint(“https://thethings.example.com/api/v3/as/applications/app1/webhooks/wh1/devices/dev1/down/push”,$device_id)

$defults = array(CURLOPT_URL => $url, CURLOPT_POST => true, CURLOPT_POSTFIELDS => $json);
$ch = curl_init();
curl_setopt($ch, $defualts);
$request_headers = array (“Authorization: Bearer NNSXS.XXXXXXXXX”,“Content-Type: application/json”);
curl_setopt($ch, CURLOPT_HTTPHEADER, $request_headers);
curl_exec($ch)

Kind regards,

Please can you repost the code as actual text - if it’s selectable, screen shots are always second best.

This will increase the likelihood of anyone over 40 being able to read it and someone who knows PHP integrations to be able to answer.

1 Like

Which documentation?

LoRaWAN Water Temperature Monitor Integration Guide v1-3 (1).pdf (768.5 KB)

This document provided by wavetrend, I found this code from the page 16.

As for the URL in your deleted messages, perhaps you could figure the URL based on the URL you use - it’s literally that obvious.

But there is also a page that calculates the URL for you based on your region in the getting started section of the docs.

Pictures, meh, that sucks, I thought it was your code. But always 9,999% better to post a link to a PDF so we can zoom it ourselves.

1 Like

I followed the instructions, and seeing the pending status for my webhook URL. I am assuming that I should get the similar URL as I get for storage integration.

image

Ignore the pending (per Forum search!) this facility is still ‘pending’ ('scuse the pun) and has no meaning yet…acid test is if data arrives through your webhook to end destination…ALL webhooks currently show as pending :wink:

1 Like

Which instructions? Because they resulted in a misconfigured webhook that is useless.

Please stop making me prompt you for enough information to make an informed response.

Thanks. Yes I am able to see data.

Hi,

Im new to LoraWan. and i am using a UG56 Gateway with this temperature monitoring sensor you are also using however i am unsure on how to bring it onto the network. My gateway is requesting the details below

Where did you get the following details?
Device EUI (Think i have got this from a sticker on the side)
Device Profile
Payload Codec
fPort
Application Key

Hi,

There’s a few fundamentals missing here - your gateway won’t be requesting anything - it just turns RF signals formatted as LoRa to a packet on the internet.

To register a device you need to setup an application and then enter the details on the console.

There is a link to the docs for this on every console page, bottom-right.

But I’d strongly urge you to read the Learn section so you understand the LoRaWAN basics - link top of every forum page - as that will help with understanding where all the moving parts are.

As for “where do you get the details from”, most devices come with some setup information to tell you what versions, profile etc - you may need to refer to the manufacturers website.