This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Extended downlink formatter Kuando Busylight IoT Omega - LoRaWAN | |
// Copyright 2023 Sander van de Velde | |
// License: MIT | |
// | |
// This formatter supports both light changing downlink messages and command downlink messages. | |
// | |
//light change downlink example: | |
//{ | |
// "red":255, | |
// "blue":1, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Opc.UaFx; | |
using Opc.UaFx.Client; | |
namespace TraegerDiscoveryApp | |
{ | |
/// <summary> | |
/// Traeger Nuget package needed: <PackageReference Include="Opc.UaFx.Advanced" Version="2.18.3" /> | |
/// </summary> | |
/// <remarks> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Azure.Storage.Blobs; | |
using Microsoft.Azure.Devices.Client; | |
using Microsoft.Azure.Devices.Client.Transport; | |
using Microsoft.Azure.Devices.Shared; | |
using Newtonsoft.Json; | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Text; | |
using System.Threading; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Runtime.Loader; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Microsoft.Azure.Devices.Client; | |
using Microsoft.Azure.Devices.Client.Transport.Mqtt; | |
using Microsoft.WindowsAzure.Storage; | |
using Microsoft.WindowsAzure.Storage.Blob; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) Microsoft. All rights reserved. | |
// Licensed under the MIT license. See LICENSE file in the project root for full | |
// license information. | |
// This gist is based on https://github.com/Azure/iot-central-firmware/blob/master/ESP8266/ESP8266.ino | |
#include <ESP8266WiFi.h> | |
#include "src/iotc/common/string_buffer.h" | |
#include "src/iotc/iotc.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#r "Newtonsoft.Json" | |
using System.Net; | |
using Microsoft.AspNetCore.Mvc; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
public static async Task<IActionResult> Run(HttpRequest req, ILogger log) | |
{ | |
log.LogInformation("DPS processed a request. "); |