esp8266

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

EOFException after server responds

你说的曾经没有我的故事 提交于 2019-12-13 05:19:49
问题 I have a quite simple problem but I've still couldn't find a solution yet. What I want to accomplish: I'm trying to establish a reliable connection between a smartphone running Android and the ESP8266 wifi module. I would like to send short HTTP string messages, where the phone plays the role of a client and the ESP8266 of a server. For managing HTTP requests I'm using the Volley library. What already works: I am able to do a successful HTTP GET request to the ESP8266 from a browser running

Espressif ESP8266 NONOS_SDK - Makefile

你离开我真会死。 提交于 2019-12-13 03:58:12
问题 I would like to compile my source-code for the ESP8266 (Extensa NONOS_SDK Toolchain is already installed and working). This is my folder structure: I use this Makefile from an example from Espressif: https://github.com/espressif/ESP8266_NONOS_SDK/blob/master/examples/simple_pair/Makefile and I also use this gen_misc.sh : https://github.com/espressif/ESP8266_NONOS_SDK/blob/master/examples/simple_pair/gen_misc.sh I am running Ubuntu 18 as a Linux Subsystem for Windows 10. This is how I called

Connecting Sparkfun ESP8266 Thing to Azure IoT Hub

不想你离开。 提交于 2019-12-13 02:47:06
问题 I am currently trying to connect my Sparkfun ESP8266 Thing to my Azure IoT Hub. I have successfully set up my hub, and am following this tutorial on how to connect the Thing to my Azure IoT Hub: https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-sparkfun-esp8266-thing-dev-get-started Unfortunately I keep getting the error: 'StaticJsonBuffer' was not declared in this scope Arduino: 1.8.5 (Windows 10), Board: "SparkFun ESP8266 Thing, 80 MHz, 512K (no SPIFFS), v2 Lower Memory, Disabled, None

Issue loading files w/SPIFFS (ERR_CONTENT_LENGTH_MISMATCH)

China☆狼群 提交于 2019-12-12 10:13:24
问题 Alright so I've been looking into this for the past two days and I still feel like I'm getting nowhere. I recently started using the SPIFFS File System for Arduino development on an HUZZAH ESP8266 like the FSBrowser.ino example, and while it's been great in terms of separating code, as my code continues to grow it has not been great in terms of stability. Ever since I began adding more and more javascript, I began to have errors pop up for various files, whether it's my HTML/CSS/JS, and the

Interfacing GSM module with nodemcu

落爺英雄遲暮 提交于 2019-12-12 06:47:28
问题 I wrote this code to interface the gsm module, can anyone check the code and give me some propositions ? hex1= '0x1A'; function delay_s(delay) delay = delay or 1 local time_to = os.time() + delay while os.time() < time_to do end end uart.alt(1); uart.setup(0, 9600, 8, uart.PARITY_NONE, uart.STOPBITS_1, 1) uart.write(0,"AT+IPR=9600\n") for j = 1, 10 do uart.write(0, "AT\n") end delay_s(1000) uart.write(0, "AT\n") delay_s(1000) uart.write(0, 'AT+CSCS="GSM"\n') delay_s(1000) uart.write(0, 'AT

ESP8266 nodemcu resolving raspberry's local dns

别等时光非礼了梦想. 提交于 2019-12-12 06:36:55
问题 I'm having an issue with connecting the esp module on the raspberry via mqtt . After a lot of search I think I am kinda lost now. So here's the problem I have setup my raspberry's local dns to work as cubex.local, I followed the instructions here: http://www.howtogeek.com/167190/how-and-why-to-assign-the-.local-domain-to-your-raspberry-pi/ Everything seems to be working fine on this end... I can use the cubex.local on the local network to have ssh and ftp access to the raspberry but when it

ESP8266 cannot read flash after programming

痴心易碎 提交于 2019-12-12 05:04:45
问题 I have written the flash on an ESP-12E, using a custom build with the base modules + OneWire and mDNS. The build is from a website i've used before and the build have always worked. The flash write was apparently successful, yet after the write the ESP started to send garbage data and it hasn't stopped yet. The ESP8266 download tool from Espressif fails to program the flash, and so does esptool. The fun part is: I can actually read the MAC for both the AP and the STATION. GPIO0/2 changes have

esp8266 byethost Error get request

こ雲淡風輕ζ 提交于 2019-12-12 04:29:06
问题 Good morning, I want to send data by get through esp8266, I have a qualifying account in byethost and I also have a hosting account paid with another hosting provider, but with byethost I get the following error: AT+CIPSTART="TCP","ahorrodeenergy.byethost17.com",80 AT+CIPSEND=67 GET /inserta.php HTTP/1.1 Host:ahorrodeenergy.byethost17.com/inserta.php" +IPD,1080:HTTP/1.1 200 OK Server: nginx Date: Fri, 10 Mar 2017 01:30:09 GMT Content-Type: text/html Content-Length: 851 Connection: keep-alive

Convert string as hex to hexadecimal

人走茶凉 提交于 2019-12-12 03:28:53
问题 I have a function that takes an uint64_t variable. Normally I would do this: irsend.sendNEC(result.value); result.value is an uint64_t as hexadecimal (I think). If I do this: String((uint32_t) results.value, HEX) I get this: FF02FD If I do: irsend.sendNEC(0x00FF02FD) it works perfectly and is what I want. Instead of grabbing the result.value , I want to write it as a string (because that's what I get from the GET request). How do I make "FF02FD" into 0x00FF02FD ? EDIT: Maybe this makes it