iot

How can I enroll a device to a group enrollment in Azure IOT hub?

拥有回忆 提交于 2019-12-11 15:38:14
问题 I have seen code for individual enrollment but I can't find any for group enrollment. I need to bulk enroll a thousand devices to Azure IOT Hub and was thinking of group enrollment.Any sample code will be appreciated. 回答1: It should be possible both with group enrollment and bulk individual enrollments. From the samples related to How to manage device enrollments with Azure Device Provisioning Service SDKs: Bulk Individual Enrollments public async Task<List<IndividualEnrollment>>

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

时光毁灭记忆、已成空白 提交于 2019-12-11 15:35:39
问题 Would it be possible to do relation in this sense in firestore ? whereby I want to relate a field in collection to another field in another collection Eg: I have 2 different collection - tracking and venue tracking <-- collection 1. document(xyz123) device_unique_identifier = "abcd1234" timestamp = 10/09/2019 10:00 2. document(xyz567) device_unique_identifier = "efgh3456" timestamp = 10/09/2019 11:00 venue <-- collection 1. document(zyx123) name = "room A" device_unique_identifier = "abcd1234

How to get the QoS of a client in HiveMQ Client?

空扰寡人 提交于 2019-12-11 15:28:53
问题 I'm working with HiveMQ Client and I wanted to know if there was a way to get the quality of service (QoS) that a client is subscribing with (in terms of a specific topic or in general)? I would be looking for a method I could invoke on a client like so: Mqtt5BlockingClient subscriber = Mqtt5Client.builder() .identifier(UUID.randomUUID().toString()) // the unique identifier of the MQTT client .serverHost("localhost") .serverPort(1883) .buildBlocking(); subscriber.getQoS("topic") // returns

How to send data from Raspberry pi to Google Cloud IoT Core, using Android Studio?

时间秒杀一切 提交于 2019-12-11 14:45:44
问题 I'm doing Android Things project. I want to publish a String message to Google Cloud IoT Core, but there are errors shown. I'm using Raspberry Pi 3 with Android Things OS and and programming it using Android Studio. Errors screenshot: This is the whole code: AndroidManifest.xml: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="cacaosd.com.sample1"> <!-- PAHO Permissions --> <uses-permission android:name="android.permission

Linux userspace code to communicate between Linux board and each node running contiki udp sender example code

蹲街弑〆低调 提交于 2019-12-11 13:39:06
问题 I am using Contiki to create an IoT product involving multiple STM32L152 based nodes and a Linux board. I have one embedded Linux board (based on iMX6) that receives data from nodes, sends to the internet using cellular and 10 nodes that sense the different environmental parameter and deliver to Linux board. Linux board has a coprocessor that running border/edge router code, UART2 lines of that coprocessor is connected to Linux board. I use Contiki tool tunslip6 to create tun0 interface, I am

NodeMCU and ESP8266: slow mqtt publish

▼魔方 西西 提交于 2019-12-11 13:15:17
问题 I'm using esp8266 with the firmware produced with Marcel's NodeMCU custom builds http://frightanic.com/nodemcu-custom-build/ I tested the "dev" branch and the "master". I changed a little bit the " Connect to MQTT Broker " code found here https://github.com/nodemcu/nodemcu-firmware -- init mqtt client with keepalive timer 120sec m = mqtt.Client("clientid", 120, "user", "password") m:on("connect", function(con) print ("connected") end) m:on("offline", function(con) print ("offline") end) -- m

How to create windows 10 iot core application icon

廉价感情. 提交于 2019-12-11 07:39:55
问题 I have created an windows 10 iot core application and i created the app bundle in appx format. That's installing properly in windows 10 machine. But i want to install in IOT core board The package file which i have created like below: ABC_1.0.9.0_AnyCPU_Debug.appxbundle I have created through visual studio 回答1: You can follow this tutorial to create the the appxbundle. Then in the windows iot device portal, select add button to install your app like this: After that, you will see this Dialog:

Contiki BR not executing tcp_ip event,, does'nt goes after PROCESS_YIELD

浪尽此生 提交于 2019-12-11 07:31:43
问题 I'm trying to implement ECC in 6LoWPAN border router. I'm using contiki Wismote motes for all udp_sender.c as sender and the Border router (border_router.c) needs to receive some messages and also reply ECC keys. I have disabled the default server (WITH_WEBSERVER=0) in makefile and enabled debug_print. udp_sender.c sends messages correctly but the border router doesn't receive messages. Nothing executes after PROCESS_YIELD in border_router.c while(1) { PROCESS_YIELD(); **//Nothing executes

Using the i2c smartdrive sensor with a Pio Cli commands to run motors

戏子无情 提交于 2019-12-11 07:21:47
问题 This is my i2c sensor: http://www.mindsensors.com/rpi/76-smartdrive-high-current-motor-controller look in pdf in Documents sessions please Based on this google guide https://developer.android.com/things/sdk/pio/pio-cli.html What I need to put in XX ZZ YY UU to run motors in determined speed, direction, duration, etc... e.g.: pio i2c I2C1 0x1B write-reg-buffer 0xXX 0xYY 0xUU 0xZZ As (in this case) I will use writeRegBuffer() on my android things app to run one, two or both motors in determined

Unable to connect Rainbow Hat/Raspberry pi3 with Android Things using adb

青春壹個敷衍的年華 提交于 2019-12-11 06:33:26
问题 I'm using Pimoroni Rainbow-Hat Raspberry pi3 kit. I have loaded android things image on sdcard. I have power cable and ethernet cable connected. I can see Android things boot screen on display but i don't see the IP. When i try to connect with adb connect Android.local it's not working(getting unknow host). I tried the ethernet cable from pi3 ethernet port to laptop , i can see the lan ip when i do ipconfig /all but when i try adb connect <-ip-:5555, still connection gets refused. but am able