iot

POST for Azure Mobile/Web App (working from Arduino)

99封情书 提交于 2019-12-13 04:29:01
问题 I want to find samples of how to work with Mobile/Web App by sending POST. Previously in Mobile Services it was possible to send POST like this: POST /tables/table_name HTTP/1.1 Host: http://arduinounoserver.azure-mobile.net/ X-ZUMO-APPLICATION: YaRWxxxxzKGRxxxxLPiNxxxxXYOvxxxx {"value": 234} But now authentication was absolutely changed. How to do it now and is it possible to find somewhere POST samples? Have found only Table Service REST API but it's still not clear for me 回答1: you can

mqtt.js does not queue more than 65535 publish messages

扶醉桌前 提交于 2019-12-13 04:26:43
问题 I've been trying to use https://www.npmjs.com/package/mqtt to simulate a large number of publishes and found that the queue does not hold more than 65535 messages at a time. (If I try to send more, the remaining are discarded) Is there a reason for this and are there any workarounds? 回答1: Because that is the maximum number of packet ids allowed in the MQTT spec Packet ids are a 16bit number (max 65535) and must be unique for all inflight messages. SUBSCRIBE, UNSUBSCRIBE, and PUBLISH (in cases

Connect to sqlite database on win IOT

寵の児 提交于 2019-12-13 03:56:05
问题 I'm getting error {SQLite.Net.SQLiteException: Could not open database file: C:\Data\Users\DefaultAccount\Documents\Storage.db (CannotOpen) when trying to connect to sqllite database on a raspberry pi 3, with WIN IOT is the OS. I'm using the SQLite.Net-PCL ver 3.1.1 implementation of SQLite. var documentsPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal); var fileName2 = "Storage.db"; var path2 = Path.Combine(documentsPath, fileName2); try { using (var

Simultaneous BLE connection

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 03:14:22
问题 How to determine maximum number simultaneous BLE connection possible with a Bluetooth Chipset like CSR8510.Where CSR8510 act as a BLE Master and end device act as a BLE slave. What should all parameter we consider to determine? 回答1: There is no HCI protocol message to get this number. You need to create connections with LE Create Connection Command to slaves until you get the HCI error 0x09 (Connection Limit Exceeded). The CSR8510 can have 5 connections in master mode to slave devices. It can

No ToastNotification on Windows 10 IoT (RPI2)

五迷三道 提交于 2019-12-13 02:59:01
问题 How to get the ToastNotification working on Windows 10 IoT? (Raspberry Pi 2). ToastBindingGeneric binding = new ToastBindingGeneric(); binding.Children.Add(new AdaptiveText() { Text = "Foo" }); binding.Children.Add(new AdaptiveText() { Text = "Trying to do something here hello!!!" }); ToastContent content = new ToastContent() { Visual = new ToastVisual() { BindingGeneric = binding } }; ToastNotificationManager.CreateToastNotifier().Show(new ToastNotification(content.GetXml())); I'm using this

How many events can socket.io handle?

回眸只為那壹抹淺笑 提交于 2019-12-12 21:54:15
问题 I was trying Socket.io (server and client) for my personal project. As it is my first try with node.js even javascript and mongodb I am bit confused about performance of my server. I have created a complex real time system with many events and many rooms. Server have very limited events but clients have too many events. These events are distributed under rooms. For example - Room R1 >> Event R1E1, Event R1E2, Event R1E3.... Event R1EN Room R2 >> Event R2E1, Event R2E2, Event R2E3.... Event

Fiware suitable Components

假装没事ソ 提交于 2019-12-12 07:02:20
问题 Could someone suggest me suitable components to build a full path using fiware components?In the path i would like to register mobile devices to a broker (also Node-RED for getting info from broker).Above the broker i want to have a Complex Event Processing engine for the complex events. 回答1: Mobile Devices can be registered to Orion Context Broker. https://github.com/fiware/context.Orion. You should use NGSIv2 APIs, please check http://fiwaretourguide.readthedocs.io/en/latest/development

Hit a URL without opening browser in Android Studio

我怕爱的太早我们不能终老 提交于 2019-12-12 05:48:10
问题 i have looked at many places, tried a ton of things but nothing to seem to work for me somehow. Can anyone please help me here. I have a simple url that i want to hit without opening the browser in mobile phones. I am clicking a button and that url needs to get hit, without the browser getting opened. I am not concerned with what is on that page i just want to load it. I basically need it for my arduino cum ethernet shield IOT project, wherein i am controlling my appliances with my android

How to identify the lat/long location from where the IoT button click was made

放肆的年华 提交于 2019-12-12 05:30:56
问题 How to identify the lat/long location from where the IoT button click was made https://aws.amazon.com/iotbutton/ 回答1: There are lookups you can do from IP Address to location. i.e http://ip-api.com/json/208.80.152.201 Unfortunately for you, IoT Button clicks only give 3 event parameters: clickType: event.clickType, // (string) the type of press; can be "SINGLE", "DOUBLE" or "LONG" serialNumber: event.serialNumber, // (string) device's serial number, from the back of the button. batteryVoltage

installing custom font .ttf on windows 10 iot device

柔情痞子 提交于 2019-12-12 04:36:36
问题 Installing custom fonts (.ttf) to windows 10 ioT device(Raspberry pi 3) . Im working on UWP app that renders the font from weathericons-regular-webfont.ttf . Initially I had to install the .ttf file in my computer in order to render these specific fonts. I had tried adding the .ttf file to my project but when deploying the app im not able to see the app's folder on the IOT device. Even if the .ttf was placed on the app folder i believe it needs to be installed separately. 回答1: the way to use