iot

Faster communication between two ESP8266 in client-server setup

本秂侑毒 提交于 2019-12-20 04:31:51
问题 I am trying to communicate between two ESP8266 12 E modules, one is set up in access point mode and the other as a station. My aim is to establish communication between the two. How can I make the data transfer faster? Is this what is called TCP/IP connection? The code for the access point: #include <ESP8266WiFi.h> #include <ESP8266WebServer.h> #include <WiFiClient.h> WiFiServer server(80); void setup() { WiFi.mode(WIFI_AP); WiFi.softAP("esp", "lol123"); server.begin(); Serial.begin(9600);

aws iot describe-endpoint::You must specify a region

妖精的绣舞 提交于 2019-12-20 03:38:13
问题 I am following this tutorial for connecting Raspberry Pi to AWS IoT using Node.js SDK and I have done all the other steps but I am lost in the authentication and certificate step: pi@raspberrypi:~ $ aws iot describe-endpoint You must specify a region. You can also configure your region by running "aws configure". pi@raspberrypi:~ $ aws configure AWS Access Key ID [None]: AWS Secret Access Key [None]: Default region name [None]: Default output format [None]: pi@raspberrypi:~ $ ls 2016-02-24

How to display a clock with the current time in a Windows Core IoT app?

本小妞迷上赌 提交于 2019-12-20 02:58:07
问题 I am trying to create an Windows 10 IoT app running headless on a Raspberry Pi 2. Everything is set up correctly and I am able to debug my from Visual Studio using the Raspberry Pi as the remote machine for debugging. Now I want to add a clock on the app page but I can't figure out how to keep the displayed time updated. In plain old C# I would use a BackgroudWorker or something similar to keep the displayed time current, but that type is not available in UWP. I have been looking into "Create

How do I connect my Raspberry Pi 3 running Android Things to a wifi network?

流过昼夜 提交于 2019-12-19 10:13:39
问题 I have flashed my Raspberry Pi 3 with the Android Things image, I have not been able to connect it to my wifi network. I have run adb devices but I get no response. 回答1: Take a look at this question: connect to Raspberry Pi 3 using adb The Raspberry Pi isn't a USB device, the USB connection is just for power, so it won't show up in adb devices . You have to connect it to a network first then use adb connect . 回答2: In short, you have to connect it to network using Ethernet and then follow the

USB Mobile Broadband Modem on Windows 10 IoT?

点点圈 提交于 2019-12-18 12:07:33
问题 Anyone had experience using a USB Mobile Broadband on Windows IoT with the Raspberry Pi2 already? I have a Huawei datacard in the Windows IoT and appears as HUAWEI Mobile on connected devices but I'm unable to see the device on the wifimanager.htm admin page. Don't even appear on the Device Manager list. Is this lack of drivers? 回答1: I was looking for a solution too, and I have finally found one. I hope the following will help you! For the record, I used a Vodafone (Huawei) K5150, "officially

Force Android to Use Wifi network with no internet

有些话、适合烂在心里 提交于 2019-12-18 10:42:41
问题 I am building an android app that needs to communicate over a WiFi network that will not have any internet access. The problem is that even when the WiFi is connected android chooses to use cellular/mobile data when no connection internet is present on the wifi network. I have read many posts on the issue many of which involve rooting the device but that is not possible with a production app (rooting devices is not an option). other solution (like my code bellow) suggest using

Android Studio - MQTT not connecting

自作多情 提交于 2019-12-18 05:13:27
问题 I have just started learning using MQTT protocol with Android Studio. Using mosquitto broker, I am able to exchange messages between pub/sub windows. But when I send message to broker through android studio, the app builds successfully but nothing displays on broker's end & system prints Connection Failure. The same code works fine on eclipse java application, but not working on android although required libraries and dependencies have been added. Please help, what am I missing in this basic

How to incorporate the IP address of a device into a Python script if the address changes

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 20:34:15
问题 I have a Python script which retrieves the measured data from a smart plug so that I can visualize it on my Rasbperry Pi. This command gets the data send_hs_command("192.168.1.26", 9999, b'{"emeter":{"get_realtime":{}}}') and this is the define def send_hs_command(address, port, cmd): data = b"" tcp_sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) try: tcp_sock.connect((address, port)) tcp_sock.send(encrypt(cmd)) data = tcp_sock.recv(2048) except socket.error: print(time.asctime( time

Johnny-Five, I2C, Controlling multiple temperature sensors using ESP8266

血红的双手。 提交于 2019-12-13 05:23:54
问题 I'm trying figure out how to control multiple temperature sensors. THE SETUP: 2 ESP8266 Micro Controllers 2 MCP9808 Temperature Sensors 1 Machine controlling both ESPs using Johnny-Five. NOTE: Each ESP8266 micro controller handles one MCP9808 Temperature Sensor. THE GOAL: The central machine (MacOS running Johnny-Five) handles both microcontrollers under one Node JS script. THE PROBLEM: I can control one Micro Controller / Temperature pairing, but not both under the same script. Apparently

Azure - What service to use for Arduino data (iot)

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 04:55:55
问题 I have an Aurdino YUN where i get some water data ( how much i have used ) I would like to get this data on the web and have just started to check around with azure which seems to be an amazing service but a bit overwhelming. I expect my project to grow and im a bit confused as to what service i should use. My questions is. What service should i use? 1. Mobile service 2. azure event Bus I have read alot of guides and they seem to use the mobileservice but Microsoft seems to want me to use the