Search found 3 matches

by weekendowel
Fri Mar 17, 2023 9:45 am
Forum: Windows
Topic: .NET with sensor
Replies: 4
Views: 14895

.NET with sensor

I am using this code to get value from a temperature sensor: private void Form1_Load(object sender, EventArgs e) { TelldusNETWrapper t = new TelldusNETWrapper(); t.tdRegisterRawDeviceEvent(EventCallbackFunction, null); } public int EventCallbackFunction(string data, int controllerId, int callbackId,...
by weekendowel
Fri Mar 17, 2023 9:45 am
Forum: Windows
Topic: .NET with sensor
Replies: 4
Views: 14895

Re: .NET with sensor

I wrote the code in VB.NET instead and for anybody interested here it is: Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim t As New TelldusNETWrapper() Dim k As New RawListeningCallbackFunction(AddressOf eventhappened) t.tdRegisterRawDeviceEv...
by weekendowel
Fri Mar 17, 2023 9:45 am
Forum: Windows
Topic: .NET with sensor
Replies: 4
Views: 14895

Re: .NET with sensor

I´m using a jenkinsbird sensor, but the code should be valid for any sensor