iot

Control the endpoint using Kaa

笑着哭i 提交于 2019-12-12 03:52:53
问题 I am trying to build a simple scenario so that I can control an endpoint "on/off" using Kaa, but I need to know how can I auth the endpoint ? I mean how can I manage that some specific end point that is being controlled ? Also is there any way so that I can identify a point and then allow/deny the connection from the EP to Kaa ? Thanks 回答1: For details of endpoint authentication please refer to the Endpoint provisioning and registration documentation. You can use internal credentials service

How to use PowerShell to set the time on a remote device?

拥有回忆 提交于 2019-12-12 03:17:50
问题 I want to set the Date and Time of a remote device ( Raspberry Pi 2 running Windows IoT ) to the value of the Date Time of a local device. I create a variable $dateTime to hold the local DateTime. I assign a password to connect to a remote device to a variable $password. I create a credential object. I connect to the remote device using Enter-PSSession. Now that I'm connected I try assigning the remote devices DateTime using Set-Date = $dateTime | Out-String. I get cannot convertvalue "=" to

MQTT on ESP8266 with NodeMCU - problems with publishing

你。 提交于 2019-12-12 02:56:57
问题 I'm building a battery powered IoT device based on ESP8266 with NodeMCU. I use mqtt to periodically perform measurements and publish results. I know, that to allow network stack running, I should avoid tight loops and rely on callback functions. Therefore it seemed to me that the right organization of my measurement code should be: interval=60000000 function sleep_till_next_sample() node.dsleep(interval) end function close_after_sending() m:close() sleep_till_next_sample() end function

Azure IoT Hub Operations Monitoring

六眼飞鱼酱① 提交于 2019-12-12 01:49:56
问题 I have an Azure IoT hub that I connect devices to. I want to enable monitoring to monitor devices connecting and disconnecting from the hub. I've enabled Verbose on Connections in the monitoring categories for my Iot hub: My devices connect to my Hub and show in Device Explorer: I then have an Azure Function set to log my data from the Operations Monitoring to an Azure SQL db: using System; using System.Configuration; using System.Data.SqlClient; using Newtonsoft.Json; public static void Run

SQLite.Net Won't Create In Win IoT Library

蹲街弑〆低调 提交于 2019-12-12 01:43:58
问题 I have been struggling to find a way of persisting an SQLite database on a Pi under Win IoT which can be accessed by different background applications (not concurrently). I thought I had the answer when I discovered Libraries (Music, Pictures, Videos - but perversely not Documents, without more work). I can create a text file in one app and write it to the Pictures library's default folder. I can then read the text file with another app. File.Exists returns true. Bingo (I thought)! However,

Not able to access WSO2 IoTS Device Management Console in wso2-iot-3.3.0 when logged in 'admin'

一笑奈何 提交于 2019-12-11 17:33:40
问题 I am studying IOT-server. I have a question and please help me. I use WSO2 IoT server and I am not able to access WSO2 IoT server device Management Console (https://localhost:9443/devicemgt) when I input 'admin' both username and password or input this which created a new account. As a result, it showed me the Authentication failed. When I saw users list in https://localhost:9443/carbon, it showed admin, new accounts .... etc. I don't know why it does not log in WSO2 IoT server device

Application hangs when sending from MVC Web Application to Azure IoT Hub Device

人盡茶涼 提交于 2019-12-11 17:14:58
问题 This is a controller code of an Azure Web App that handles a device notification logic. What I'm doing is invoking the code shown below from a ASP MVC Controller. But when I run it I get an ever-pending request from the browser(it hangs). I have a button on view, when clicked, it invokes Wakeup method in the controller. The code is not different from the one on MSDN for a console application. What am I missing? using System.Text; using Microsoft.Azure.Devices; public class

Device connectivity(online/offline)status with the Auzure iot hub

此生再无相见时 提交于 2019-12-11 16:13:44
问题 I connected my mobile device to the IOT hub. I would like to display the connectivity (online/offline) status of the device on IOT hub service app installed on another device. How to achieve this? Is there any automatic trigger/event that fires when there is change in connectivity status? Also is there any API in service SDK to check the connectivity status of the device. 回答1: Yes, we publish device connection state on Event Grid, which can be used for trigger: https://docs.microsoft.com/en

Firestore - How to model and query relation of 2 collections - IOT use case - v2

℡╲_俬逩灬. 提交于 2019-12-11 15:53:05
问题 extending to my question Firestore - How to model and query relation of 2 collections - IOT use case I'ved now seen a video on this, and this recommends modelling relations using document ID. https://www.youtube.com/watch?v=jm66TSlVtcc skip to 6:07 I want to know if it would work in this case (modifying the example from my original question to fit to this youtube recommendation of firestore relation: Eg: I have 2 different collection - tracking and venue tracking <-- collection 1. document

AWS IoT SDK - main L#206 Error subscribing : -28 (C code)

谁说胖子不能爱 提交于 2019-12-11 15:50:14
问题 I am trying to run the example in this tutorial from AWS IoT (AWS IoT Embedded C SDK). My aws_iot_config.h file has the following configuration: #define AWS_IOT_MQTT_HOST "XXXXXXX.iot.us-east-2.amazonaws.com" ///< Customer specific MQTT HOST. The same will be used for Thing Shadow #define AWS_IOT_MQTT_PORT 8883 ///< default port for MQTT/S #define AWS_IOT_MQTT_CLIENT_ID "c-sdk-client-id" ///< MQTT client ID should be unique for every device #define AWS_IOT_MY_THING_NAME "SM1" ///< Thing Name