Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Me No Dev
@me-no-dev
since you are human, you can't just give 0/1 to the mcu touching the wires
that is why you get those
you will actually touch many times in the first microsecond
Russ Mathis
@RussMathis
so it is possible to mis a simultaneous interrupt if an isr is running at the same time?
Me No Dev
@me-no-dev
no
if it really is at the same time
both will be called
Russ Mathis
@RussMathis
How does that happen? are the interrupts some how latched?
Me No Dev
@me-no-dev
read my previous comment
its a port interrupt
not pin
its separated by pin in the isr
Russ Mathis
@RussMathis
ahhh, that's why you get all the big money. LOL thanks!
Me No Dev
@me-no-dev
so comes in as mask
have no clue what big money you are talking about
Russ Mathis
@RussMathis
How do I learn about this stuff, have pointer to book or documents?
Me No Dev
@me-no-dev
that is how i do it :)
Russ Mathis
@RussMathis
LOL, thx!
Me No Dev
@me-no-dev
you can also read the core source
functions are not large
Russ Mathis
@RussMathis
@me-no-dev thx
Rahul Thakoor
@rahul-thakoor
This message was deleted

Hey there.. First thanks for your awesome library, really got me going on arduino and esp8266 iot projects particularly as a beginner.. I need your help with something if its not too much to ask..
I want to use esp8266 standalone as an access point and start an http webserver on it.. then use iphone to connect to server via blynk app(check it out at blynk.cc) to trigger actions such as set a gpio HIGH etc.. I know this is possible through a web browser on device connected to AP set up by esp, but I want to use the blynk app given its awesome grraphics interface.. could you help me plz? here is what I came up with so far:

include <ESP8266WiFi.h>
include <WiFiClient.h>
include <ESP8266WebServer.h>
include <BlynkSimpleEsp8266.h>
/ Create a WiFi access point and provide a web server on it. /
/ Set these to your desired credentials. /
const char ssid = "ESPap";
const char password = "thereisnospoon";
char auth[] = "8d8269cxxxxxxxxxxxxxxxxxxxxxx8";
ESP8266WebServer server(80); /* Just a little test message. Go to http://192.168.4.1 in a web browser connected to this access point to see it. */ void handleRoot() { server.send(200, "text/html", "<h1>You are connected</h1>"); }
void setup() { delay(1000); Serial.begin(115200); Serial.println(); WiFi.mode(WIFI_AP_STA); Serial.println("mode is ap and station"); Serial.println("Configuring access point..."); / You can remove the password parameter if you want the AP to be open. / WiFi.softAP(ssid, password); IPAddress myIP = WiFi.softAPIP(); Serial.print("AP IP address: "); Serial.println(myIP); server.on("/", handleRoot); server.begin(); Serial.println("begin wifi..."); WiFi.begin(ssid, password); Serial.println("HTTP server started"); Serial.println("blynking..."); Blynk.begin(auth, ssid, password, "192.68.4.1", 80); Serial.println("blynking done..."); }
void loop() { server.handleClient(); Blynk.run(); }

Im told by blynk community that" Arduino for ESP has only TCP server as of writing"
but the blynk app uses SSL connection.. any way to work around this?

Burk Murray
@TimeTravelingOwls
Burk Murray
@TimeTravelingOwls
Also, check out the ESP8266 user community: http://www.esp8266.com/search.php?keywords=Blynk
pRoFlT
@pRoFlT
hello
anyone get 700 from the analog port when it should be 0? i seem to get 700 - about 840 (3.3V)
pRoFlT
@pRoFlT
never mind found solution here esp8266/Arduino#338
Ivan Grokhotkov
@igrr
this adc issue is fixed in git trunk but it's not in the boards manager package yet. I've added an API to choose between VDD and A0 measurement.
probonopd
@probonopd
https://github.com/tigoe/CandleProject - tigoe is using esp8266 :-)
Rahul Thakoor
@rahul-thakoor
@TimeTravelingOwls Im sorry but this does not help.. I have already tried it. I need to be able to set up an SSL connection on ESP8266 using arduino IDE.. Any ideas?
Ivan Grokhotkov
@igrr
unfortunately there is no support for SSL yet in our arduino core
Ivan Grokhotkov
@igrr
thanks to the gdb stub from the guys at Cesanta, i can now halt the ESP on exception, attach the debugger and inspect memory and stack :) extremely helpful.
too bad their code is GPLv2, so i can only use it locally...
Tim Caswell
@creationix
I just finished the first alpha release of my new scripting engine for ESP chips! https://github.com/creationix/uscript/releases/tag/0.1.0
Based on the arduino library here to help speed up development a lot. (much easier than using the SDK directly)
chad cormier roussel
@chadouming
@igrr was an interesting reading, would be nice to see this implemented though i understand the license issue
Burk Murray
@TimeTravelingOwls
@rahul2704 You don't need SSL or an AP running on the ESP8266 to use Blynk. Edit the example code
...to use your Blynk auto code and to connect to your WiFi. The ESP makes a TCP connection to Blynk over the web.
Markus
@Links2004
ok the ESP hates other 2.4Ghz transmitters :(
my ESP-12 crash randomly when i place it near my 100mW transmitter.
probonopd
@probonopd

https://github.com/bblanchon/ArduinoJson/wiki/Encoding-JSON states "The library is designed to send the JSON string to an implementation of the Print interface that is part of Arduino. In the example above we used Serial, but they are many other implementations that would work as well, including: HardwareSerial, SoftwareSerial, LiquidCrystal, EthernetClient, WiFiClient, Wire"

I assume that this should work with ESP8266 WiFiClient too but lightJson.printTo(HTTP.client()); gives "no matching function for call to 'ArduinoJson::JsonObject::printTo(WiFiClient)'"

with HTTP being ESP8266WebServer HTTP(80);
What am I misssing here?
Me No Dev
@me-no-dev
client.print(lightJson);
probonopd
@probonopd
@me-no-dev:
WiFiClient client = HTTP.client();
client.print(root);
no matching function for call to 'WiFiClient::print(ArduinoJson::JsonObject&)'
Me No Dev
@me-no-dev
try client.print((Printable&)root)