iot

published message store by mosquitto broker when subscriber is offline with QOS=2

余生颓废 提交于 2019-12-06 05:21:14
My both publisher and subscriber are both connected to mosquitto (paho) broker with QOS=2 and maintaining persistent session by clean_session=false. When i publish message with subscriber connected to broker, it successfully received by subscriber, now if I disconnect the subscriber , then again publish message and connect subscriber after, I will be able to retrieve message those messages when my subscriber was offline. My question is -- Is there any storage in the broker which stores all the messages when subscriber is offline. If yes, how much long or how many message it can store. Is this

How to run a Windows 10 IOT app locally?

若如初见. 提交于 2019-12-06 03:44:28
问题 Is there a way to allow a normal Windows 10 installation to run Windows 10 IOT apps for debugging purposes? Right now when I set the architecture from ARM (Raspberry Pi 3) to x64 (Local machine) I get the following error message when I start a debug session: I've read here that it's got something to do with 'embedded mode' but I can't find any information anywhere about it and the group policy does not appear to contain anything about enabling embedded mode... Help is greatly appreciated!

Android Ble GATT_ERROR 133 getting often with samsung devices

元气小坏坏 提交于 2019-12-05 23:01:29
I am working on BLE Applications, I have tested with different devices like Nexus, Moto, Samsung, LG. I am getting the GATT Error 133 in Samsung Devices alone(Samsung A5 2016). Trying to connect 10 times it gets connected only 2 or 3 times.Please Help me out. 来源: https://stackoverflow.com/questions/40465373/android-ble-gatt-error-133-getting-often-with-samsung-devices

Act for other devices on Azure IoT Hub

本秂侑毒 提交于 2019-12-05 15:45:58
In our scenario, we have a bunch of devices that communicate locally with a gateway. The gateway is responsible to aggregate events from the devices and send it to the cloud. It should also receive device configuration changes from the the cloud and transport it to the specific device. Based on my reading I would think that this is actually a typical IoT Hub scenario. And we would very much like to use the device management, messaging and maybe even twins that IoT Hub provides. However, the way the devices communicate is already implemented and shall not be changed. That means the devices

Totally Disconnect a Bluetooth Low Energy Device

空扰寡人 提交于 2019-12-05 05:53:36
I connect to a BLE device with the connectGatt() method in Android. This works great. When I disconnect I use the following: private void disconnectDevice() { gatt.disconnect(); } When I receive the callback I do a close. private BluetoothGattCallback gattCallback = new BluetoothGattCallback() { @Override public void onConnectionStateChange(BluetoothGatt gatt, int status, int newState) { switch (newState) { case BluetoothProfile.STATE_CONNECTED: Log.d("BLED-GATT", "STATE_CONNECTED"); setUIConnectionStatus("Discover services on device...", Color.YELLOW); checkEnableAddButton(simpleTrackEditText

2-Jetson Nano Developer KitでAWS IoT GreengrassのML Inferenceを試す

痴心易碎 提交于 2019-12-05 01:05:37
https://qiita.com/sparkgene/items/425d310c1d6c9158f896 前回の記事では、Jetson Nano上でAWS IoT Greengrassを動かしました。 Jetson Nano Developer KitでAWS IoT Greengrassを動かしてみる 今回は、Jetson Nano上でMLの推論を試してみます。 Greengrassは事前に生成したMLのモデルを使って推論を実行する事が可能です。 AWS IoT Greengrass ML Inference 推論で使うモデルが必要になるので、今回はこちらの「 AWS マネジメントコンソール を使用して Machine Learning Inference を設定する方法 」を参考にしながら作業を進めます。 MXNetのインストール AWSのドキュメントではJetson TX2向けの手順やライブラリが有るのですが、Jetson NanoはCUDA10の為、そのまま使えません。 で、ソースからインストールやら色々ハマった結果、公式のフォーラムで解決策が提供されていたので、それを参考にインストールしました。 I was unable to compile and install MXNET on the jetson nano,Is there an official

Windows 10 IoT Raspberry Pi 2: Autostart published Application

天涯浪子 提交于 2019-12-04 18:52:55
问题 I'm starting making experience with the Raspberry Pi 2 Development with Windows 10 and I was wondering how can I configurate the Raspberry Pi 2 to autostart my own published application, I developed in Visual Studio? And furthermore: How can I set up time & Region on my device? Thank you so much for all helpfull and well meant answers. 回答1: I was looking at how to do this myself this evening. What I found was that you can edit the Pi's startup through Powershell on your PC and tell it what

How to get Unicast, Dns and Gateway Address in UWP?

徘徊边缘 提交于 2019-12-04 16:25:34
问题 I'm trying to find Unicast, Dns and Gateway Address in windows IOT. Normally I can access these values with NetworkInterface.GetAllNetworkInterfaces() method. But in UWP, that method is missing. Is there any alternative for getting these values? 回答1: You could try to PInvoke methods from Iphlpapi.dll . There are several methods that may contain the Unicast, Dns and Gateway info you're looking for, like GetInterfaceInfo() , GetAdaptersInfo() , GetAdaptersAdresses() , etc. Please see a complete

Video feed to ThingsBoard dashboard

眉间皱痕 提交于 2019-12-04 15:36:42
I'm currently using ThingsBoard as an IoT broker to capture and display telemetry data from several sensors to a dashboard. I would like to add the capability of displaying a live video feed from a iPhone camera or webcam, and I'm wondering if anyone here knows if ThingsBoard supports any sort of video data stream (either live or timed screen capture based)? Ideally, I'd like to mount the phone/camera to a servo-controlled mount which I can used to position the camera using controls on the dashboard. 来源: https://stackoverflow.com/questions/54678942/video-feed-to-thingsboard-dashboard

What is the size of CoAP packet?

给你一囗甜甜゛ 提交于 2019-12-04 12:22:33
问题 I'm new for this technology, can somebody help me to know about some doubt? Q-1. What is the size of CoAP packet? (I know there is 4 byte fixed header, but what is the maximum size limit including header, option and payload?) Q-2. Is there any concept for Keep Alive like MQTT? (It works on UDP for how much time it keeps open the connection, is there any default time or it keeps open every time when we send packet?) Q-3. Can we use CoAP with TCP? (Main problem with it CoAP is it works on UDP,