iot

How to convert date time in hex in android

只谈情不闲聊 提交于 2019-12-25 10:50:31
问题 I need to convert date and time in hex code for writing it on IOT device. Here is my code private String getDateTimeToHexa() { Calendar mCalendar = Calendar.getInstance(); TimeZone gmtTime = TimeZone.getTimeZone(TimeZone.getDefault().getDisplayName()); mCalendar.setTimeZone(gmtTime); final Date date = mCalendar.getTime(); return Long.toHexString(date.getTime()); } It is returning 11 digits hex code I need 8 digits, just like date and time in hex is 47C7EDE0 for this date 12:34:56 29/Feb/2008

How do I know if my Device in Azure IoT Hub is reachable?

最后都变了- 提交于 2019-12-25 09:18:52
问题 I have a Azure IoT Hub with 2 Devices. I send a Message from a RaspberryPi to another Device. How do I know that the message was received from the other Device? 回答1: You can refer to the Device Explorer tool, which is open sourced. If you want to monitor if an IoT device is reachable by the IoT Hub, you can got to "Message To Device" tab, select the IoT device in the Device ID tab, and make sure you checked "Monitor Feedback Endpoint" . Whenever a message is sent from the IoT Hub to the

Bluemix IoT NodeJS code, missing MQTT folder

三世轮回 提交于 2019-12-25 06:58:11
问题 I am new to Bluemix and IoT. Earlier I replicated Parking Lot App as shown in the document on link. that time the app worked fine. Now when i try to replicate the same app again I see the code structure is changed. the "mqtt" folder which was there previously is missing/omitted from the code. I am unable to find the callbacks which were there in files under "mqtt" folder. I checked the above mentioned doc if its modified, but it is still the old doc which is there since March. can someone

How to read data from MQTT in Eclipse Paho?

℡╲_俬逩灬. 提交于 2019-12-25 06:45:20
问题 I am trying to read sensor data using MQTT, using Eclipse Paho. I am successfully connected, but I want to read data. my code so far: public static void main(String[] args) { MqttClient client; MqttMessage msg; MemoryPersistence persistence; MqttConnectOptions conn; IMqttMessageListener listen; String broker = "tcp://url:1883"; String str = "password"; char[] accessKey = str.toCharArray(); String appEUI = "userID"; try { persistence = new MemoryPersistence(); client = new MqttClient(broker,

c# Azure IOT Edge Auto-provision with Device Provisioning Service(DPS) with x509 certificate sample needed

痴心易碎 提交于 2019-12-24 22:58:59
问题 I'm new to azure IOT edge development. I'm looking for a way to Create and provision a simulated x509 certificate Edge device on Windows in c#. Is Trusted Platform Module (TPM) the only way right now with edge device? I found this tutorial but it's for simulated TPM Edge device on Windows. https://docs.microsoft.com/en-ca/azure/iot-edge/how-to-auto-provision-simulated-device-windows any idea how to do provision a device with x509 certificate? and a x509 certificate group enrollment? Chuck 回答1

An error occurred Send Events: Azure Function Output Adapter failed to write events Azure Function as Stream Analytics Job Output

╄→尐↘猪︶ㄣ 提交于 2019-12-24 21:06:05
问题 I have an Azure IoT Dev Kit MXChip and I am sending the sensor data to the IoT Hub. I have also set up the Stream Analytics Job with Input as IoT Hub and Output as SQL Server and Azure Function. The output is getting written to the SQL Database, so I am confirming that the Query is correct. When I check my stream analytics job log, I am seeing some error as below. { "channels": "Operation", "correlationId": "4a9c9b61-631a-4f4f-a403-c2869b2af66c", "description": "", "eventDataId": "97250faf

Watson IOT Out node on Raspberry Pi repeatedly disconnecting

瘦欲@ 提交于 2019-12-24 18:33:31
问题 I am using a Watson IOT Output (wiotp out) in a Node-RED flow on my Raspberry PI and am having issues with the connection repeatedly disconnecting and then re-connecting. Here is a screenshot of my Credentials Node and one of my IOT Out Node. The connection is configured so that I can send messages to the cloud and successfully have them trigger a flow in my cloud Node-RED instance. The problem I'm having is that when I attempt to send a string array as my payload, very items in the array

Send data from cloud to aws iot thing

送分小仙女□ 提交于 2019-12-24 18:11:47
问题 I am trying to a reliable way to send data from aws lambda function to a aws iot thing. The thing is basically a raspberry pi which is located remotely. I have seen aws iot topics, but they don't seem to be reliable for my use case. So far I have found the following functionalities about topics Topics: Topics are asynchronous. When something is added to topic all and only currently listening devices will receive the update. There is no queueing. No delivery notification for the publisher. In

Can we detect non-iBeacon beacons on iOS?

余生颓废 提交于 2019-12-24 15:26:33
问题 I and my team are working on a beacon that we need to talk to an app on the user's iPhone. Since we need the app to detect the beacon and execute code to talk to our API even when killed, we cannot use CoreBluetooth and need to operate as a beacon. We're attempting to make a custom beacon on a BCM20737S BLE module. Is it possible to have this custom beacon talk to an app on an iPhone as a beacon? (CoreLocation framework) Thanks! 回答1: As long as your packet is broadcasting a packet with the

当物联网遇上边缘计算 | 我的物联网成长记

家住魔仙堡 提交于 2019-12-24 14:08:19
【摘要】 针对设备直联云端方案的痛点,将边缘计算概念引入物联网解决方案的IoT边缘服务应运而生。本文将会为您介绍IoT边缘的能力与价值。 边缘,指实体或逻辑概念中离中心较远,靠近边界的部分。在数据处理领域,边缘计算的概念源于云计算,是指在靠近数据源的一侧搭建集网络、计算、存储、应用核心能力为一体的计算节点,就近提供处理数据的能力,而不是将全部数据都交由云端处理。可能有人会提出疑问,云计算的目的不就是为了数据集中到云端进行处理么,为什么现在又要分工到边缘了?为了解决这个疑问,让我们以物联网场景为例,假设以下场景: 有家企业想要把自己旗下的一个产业园区建设成智慧园区,将园区中的各种设备(包含视频监控设备、门禁设备、消防设备和水电设备等等)全都接入物联网平台统一管理。但当负责人开始研究各类设备分别如何接入时,发现设备种类实在太多了,而且这些设备全都按照自己独有的行业协议上报数据;相对的,物联网平台支持的通信协议有限,所以,他要把这些五花八门的行业协议统一转换为物联网平台支持的协议,工作量很大。 同样是上面的那个企业,负责人在研究门禁系统如何接入了发现另一个问题:门禁系统中的员工数据属于企业隐私数据,将这部分数据传输至云端不符合公司安全策略。但如果只有门禁系统不接入云端,维护成本高,也不利于系统之间的联动。 在管理园区的这家企业苦恼的同时,园区内有家车企也遇到了一个难题