These are chat archives for esp8266/Arduino

10th
Aug 2015
Me No Dev
@me-no-dev
Aug 10 2015 07:17
no
does it command by command
Kiril Zyapkov
@kzyapkov
Aug 10 2015 11:09
Hi all! I need strtoul which can work with bases 10 and 16, and I'm looking at libc_replacements.c .... what would be the best way to get support for this?
Ivan Grokhotkov
@igrr
Aug 10 2015 11:12
basically you can take what you need from newlib, and then add it to libc_replacements
similar to strlcpy function
Kiril Zyapkov
@kzyapkov
Aug 10 2015 11:12
that's exactly what I was thinking, but I'd have to move things around a bit ...
strtol and strtoul should probably share the core implementation
Ivan Grokhotkov
@igrr
Aug 10 2015 11:13
ok, you're welcome
Kiril Zyapkov
@kzyapkov
Aug 10 2015 11:13
OK, I'll submit a pull when done :)
Ivan Grokhotkov
@igrr
Aug 10 2015 11:13
cool, thanks.
netson01
@netson01
Aug 10 2015 15:47
hello. can anyone help me ? i have latest arduino ide with esp8266 board installed. and when i'm trying to compile sketch i'm getting "fatal error: SoftwareSerial.h: No such file or directory"
Ivan Grokhotkov
@igrr
Aug 10 2015 15:48
that's because there is no SoftwareSerial library for esp8266
no one has written it (yet)
prussiap
@prussiap
Aug 10 2015 15:52
Is there anyway around that for bitbanging serial to get gps data or debug information through some othe rlibrary
Markus
@Links2004
Aug 10 2015 15:56
you have 2 serial ports "Serial1" is TX only (perfect for debug infos)
prussiap
@prussiap
Aug 10 2015 19:09
yeah but you can’t get serial data and debug…
Me No Dev
@me-no-dev
Aug 10 2015 19:55
you can get serial data with Serial and output debug with Serial1
SoftwareSerial is doable but will occupy one of the two timers
Juppit
@Juppit
Aug 10 2015 20:58
@igrr is there a way to substitude the gsed commands in build_bord_manager_package.sh with th more common sed? I do not find gsed under cygwin. Of course I can edit build_bord_manager_package.sh when necessary. I do not know the situation with mac and linux.
sticilface
@sticilface
Aug 10 2015 21:05
@igrr I've been building and using the boards manager package for a while, and the latest commit breaks it. If i use the previous commit of build_board_manager_package.sh it works. Although it doesn't want to install to my portable folder... but that is probably something on my end.
Ivan Grokhotkov
@igrr
Aug 10 2015 21:21
@Juppit will this work for you?
sed -e s/gsed/sed/g build_bord_manager_package.sh
@sticilface it might very well break something, if you can tell me what's wrong, i can probably fix it.
Juppit
@Juppit
Aug 10 2015 21:25
At the moment I pull the comlete branch, I will try in about 30 minutes or some more ...
Ivan Grokhotkov
@igrr
Aug 10 2015 21:28
@sticilface one obvious thing is that you now need to run python -m SimpleHTTPServer manually
sticilface
@sticilface
Aug 10 2015 21:37
right well that will probably be it then. many thanks, and it works
new sdk... another 5K heap... amazin
Juppit
@Juppit
Aug 10 2015 21:44
@igrr
sed -e s/gsed/sed/g build_bord_manager_package.sh > build.sh
works.
But I do not search a solution only for me. :smile:
Juppit
@Juppit
Aug 10 2015 23:24
@igrr build_board_manager_package.sh builds now "$REMOTE_URL/versions/$ver/$package_name.zip".
So starting SimpleHTTPServer in Arduino/build finds the package, but expects package_esp8266com_index.json still in Arduino/build, which is now under .../versions/...
Ivan Grokhotkov
@igrr
Aug 10 2015 23:25
basically you should point the IDE to http://localhost:8000/versions/1.6.5-whatever/package_esp8266com_index.json
Juppit
@Juppit
Aug 10 2015 23:49
I had it until now at
http://localhost:8000/package_esp8266com_index.json which was fine, because I had not to adjust to 'whatever'.
Ivan Grokhotkov
@igrr
Aug 10 2015 23:51
you are welcome to add something like pushd versions/$ver; python -m SimpleHTTPServer at the end of the script to match your requirements
building the board manager package is not a very common use case, and it's difficult to accommodate all the possible environments/use cases. i use this script mainly to deploy to http://arduino.esp8266.com, and it does it's job
Juppit
@Juppit
Aug 10 2015 23:54
where do I find the script?
Ivan Grokhotkov
@igrr
Aug 10 2015 23:54
well, i'm talking about build_board_manager_package.sh
it creates the directory layout which is used at http://arduino.esp82266.com (i.e. versions/<version name>/contents)
Juppit
@Juppit
Aug 10 2015 23:58
thanks for your tips and for a lot more.
This layout is pleasant for me, and allows now separate json files.
s/tip/hint