ekwus / ALoRa

C# Client for The Things Network LoraWAN Applications
GNU Lesser General Public License v3.0
18 stars 6 forks source link

Value can not be NULL #5

Open hjojohan opened 5 years ago

hjojohan commented 5 years ago

Hi Ekwus, I have been running your Alora code for a while now, and it have been working OK. Lately I have several crashes, and I cant fix it. Do you know whats causing this ?

image

ekwus commented 5 years ago

Hey

I've not check the Alora library in a while, maybe The Things Network API has changed. I'll try and find some time later to get the test system running to check that.

If you can provide a stack trace from your error that might help pin point this specific issue.

Cheers

Dave

hjojohan commented 5 years ago

This is what I could get out image

hjojohan commented 5 years ago

This is another screenshoot. Hope it can be of some help, tracking down this nasty bug :-)

image

ekwus commented 5 years ago

Hey

The payload_raw property of the data being received from TTN looks to be null! Either the API has changed or the service/message configuration has been changed on the TTN side

hjojohan commented 5 years ago

So could you please do a workaround then if your code detects that the rawmessage is null then do nothing to avoid crash, The message dont contain anythin of value anyway.. That the rawmessage isnull maybe is caused by faulty device or gateay ?

ekwus commented 5 years ago

I've made a few changes to check for null and catch any exception thrown when the messages are being deserialised.

You should be able to pull the latest nuget package and give it a live test.

hjojohan commented 5 years ago

I downloaded and installed the new packet and running again, lets see if we can running without unwanted stopps related to bad devices. -Thanks alot Ekwus :-)