These are chat archives for esp8266/Arduino

11th
Mar 2016
Ivan Grokhotkov
@igrr
Mar 11 2016 05:44
They are not equivalent, I have added bit 2, which is shared between SPI and I2S, and removed bit 3, which is RTC
Reverting this change now, will do more tests
bidyutper
@bidyutper
Mar 11 2016 06:34
hyem.jpg
pretty interesting
tzapu
@tzapu
Mar 11 2016 06:35
@igrr it seems fine with that change reverted, all works
Lars Englund
@larsenglund
Mar 11 2016 07:38
@bidyutper where is the image from?
Me No Dev
@me-no-dev
Mar 11 2016 08:02
@igrr bit 2 is for both SPI busses and i2s (flash is on there as well) maybe that is causing it
Ivan Grokhotkov
@igrr
Mar 11 2016 08:07
Yes, i'm trying to figure out why exactly this is causing an issue. Afaict, ROM functions which read and write to flash do not use interrupts, so masking shouldn't hurt. Apparently it does, but still it is not yet clear why.
bidyutper
@bidyutper
Mar 11 2016 12:29
@larsenglund just posted here.....Its an ESP 8266 based IR bluster integrated with LIRC also support Mqtt....its h/w as well as s/w part all is in opensource but don't know how to implement it... dont know much about MongoDB , Node.js..etc I m not a programmer.........
Lars Englund
@larsenglund
Mar 11 2016 13:08
@bidyutper ah, alright, thought it was a complete project
Ivan Grokhotkov
@igrr
Mar 11 2016 13:28
hey @tzapu, i think you were looking for strftime yesterday
if you can test #1752, that would be cool
Lars Englund
@larsenglund
Mar 11 2016 14:28
Is there code available that allows me to update SPIFFS by simply POST:ing a file like in the ESP8266WebServer WebUpdate example?
Martin Ayotte
@martinayotte
Mar 11 2016 14:32
void onFileUpload() {
  HTTPUpload& upload = webserver.upload();
  if (upload.status == UPLOAD_FILE_START) {
    Serial.print("Filename : ");
    uploadedFilename = String("/") + upload.filename.c_str();
    Serial.println(upload.filename.c_str());
    if (!SPIFFS.begin()) {
      Serial.println("SPIFFS failed to mount !\r\n");
    }
    fsUploadFile = SPIFFS.open(uploadedFilename.c_str(), "w");
  }
  else if (upload.status == UPLOAD_FILE_WRITE) {
    memcpy(uploadBuf, upload.buf, upload.currentSize);
    uploadBuf[upload.currentSize] = 0;
    if(fsUploadFile)
      fsUploadFile.write(upload.buf, upload.currentSize);
    Serial.print("currentSize : ");
    Serial.println(upload.currentSize);
  }
  else if (upload.status == UPLOAD_FILE_END) {
    Serial.print("totalSize : ");
    Serial.println(upload.totalSize);
    uploadedFileSize = upload.totalSize;
    if(fsUploadFile)
      fsUploadFile.close();
  }
}
Lars Englund
@larsenglund
Mar 11 2016 14:38
@martinayotte cool, I was thinking of a way to just flash the whole spiffs area but sending just the individual files should be much faster i guess
thanks
Martin Ayotte
@martinayotte
Mar 11 2016 14:40
Same mechanic will apply, but you will need to use some code similar to OTA to write the Flash directly.
Lars Englund
@larsenglund
Mar 11 2016 14:41
Right, found the relevant code in ESP8266httpUpdate
(just call Update with U_SPIFFS as the command)
Martin Ayotte
@martinayotte
Mar 11 2016 14:45
Good !
Holger Lembke
@holgerlembke
Mar 11 2016 15:12
Moin moin!
Is there any way to let the blue led on a -12 blink?
Ivan Grokhotkov
@igrr
Mar 11 2016 15:13
pinMode(1, OUTPUT); digitalWrite(1, 0);
but this will disable Serial output
iirc blue led is connected to GPIO1, which is TX
Holger Lembke
@holgerlembke
Mar 11 2016 15:14
thanks. so I will look for something else... :-)
tzapu
@tzapu
Mar 11 2016 15:18
@igrr sure, will test, thank you
Holger Lembke
@holgerlembke
Mar 11 2016 15:39
I tried the morning part of the day to get automatic/DTR/RTS-programming running with the CH340G.... all I get is USB-port resets....
there is all hell going on both lines, far away from some stable digital signals.
anyone has an idea?
Martin Ayotte
@martinayotte
Mar 11 2016 15:46
You can compare your wiring with the one from Wemos-D1-Mini for example : http://www.wemos.cc/Products/images/d1_mini.pdf
Holger Lembke
@holgerlembke
Mar 11 2016 15:49
I'm comparing with nodemcu, that uses the same thing.
Martin Ayotte
@martinayotte
Mar 11 2016 15:53
Then, it should work ... Except if you are in deepSleep with a 0R wire between RES and GPIO16 (in such case, you need a resistor in series)
Lars Englund
@larsenglund
Mar 11 2016 15:54
Is there example server code available for esp8266httpupdate? For node.js?
Holger Lembke
@holgerlembke
Mar 11 2016 15:54
pic_246_3.gif
this is on my rts line
Oleg
@5LICK
Mar 11 2016 15:54
What library can i use for esp8266 + mqtt?
Lars Englund
@larsenglund
Mar 11 2016 15:56
@5LICK PubSubClient
Oleg
@5LICK
Mar 11 2016 15:56
thanks
Martin Ayotte
@martinayotte
Mar 11 2016 15:58
@holgerlembke , do you have this kind of signal without any ESP hookup ?
Holger Lembke
@holgerlembke
Mar 11 2016 15:58
ok, found it. remove usb from hub, put usb into usb-charger. everything is good.
@martinayotte yes.
Martin Ayotte
@martinayotte
Mar 11 2016 15:58
Strange ...
Holger Lembke
@holgerlembke
Mar 11 2016 16:03
checked it with direct to computer connection, same. check it with notebook, same.
5v setup, 3.3v setup, same.
Martin Ayotte
@martinayotte
Mar 11 2016 16:07
Maybe the CH340 is defective ...
Mario Mikočević
@mozgy
Mar 11 2016 16:09
anyone using IDE 1.6.8 here ?
it doesnt compile ADC_MODE(ADC_VCC); anymore
Holger Lembke
@holgerlembke
Mar 11 2016 16:10
check it with a second one, too. same results. looking into decoupling now
tzapu
@tzapu
Mar 11 2016 16:19
@igrr strftime works perefectly, thank you. even has the extended formats :D
Holger Lembke
@holgerlembke
Mar 11 2016 16:20
ok, all back to normal... me stupid connected with the d-/d+ lines.
holgerlembke @holgerlembke sits in his edge now and whines.
Martin Ayotte
@martinayotte
Mar 11 2016 16:21
What do you means ?
Holger Lembke
@holgerlembke
Mar 11 2016 16:22
I took my rts/dtr from D-/D+ signal line...
Martin Ayotte
@martinayotte
Mar 11 2016 16:22
;-)
Holger Lembke
@holgerlembke
Mar 11 2016 16:23
turn chip 180° and voila
ZaPpInG
@lrmoreno007
Mar 11 2016 17:08
@mozgy I get in Arduino IDE.... exit status 1
previous declaration of 'int __get_adc_mode()' with 'C++' linkage
IDE 1.6.8
Mario Mikočević
@mozgy
Mar 11 2016 17:38
extern "C" {
#include "user_interface.h"
}
that is missing
Victor Tseng
@Palatis
Mar 11 2016 19:54
emm... does anyone... managed to put sqlite on esp8266?
Keith Andrew Hill
@vic10us
Mar 11 2016 20:42
does anyone know how to connect to wifi using WPA2 enterprise (username/password) ?