These are chat archives for esp8266/Arduino

12th
Nov 2015
brutzler
@brutzler
Nov 12 2015 00:01
I think a little bit different. Arduino is calling "python.exe ....../espota.py -i xxx and so on". In "xxx" there is the ip, that is chosen in the IDE.
Without telnet i can not choose an IP-address. In that case there is a -i COMx. And this is not working with python. If i could change the espota.py, that it doesn't use the -i parameter. But it is always using a static IP, then it should work for me directly out of the IDE.
Me No Dev
@me-no-dev
Nov 12 2015 00:06
if you use it outside of the IDE then no need to hardcode such thing
if you want the IDE ta replace that COM with the IP, then you should edit platform.txt and edit the espota.py commend from there
brutzler
@brutzler
Nov 12 2015 00:07
yes, but i am lazy.
Me No Dev
@me-no-dev
Nov 12 2015 00:07
wait... I'm lost now :D
you want to edit the espota.py but lazy to edit the platform.txt instead?
brutzler
@brutzler
Nov 12 2015 00:08
no, sorry crossposting. too lazy to make OTA outside ide
but platformt.txt is a new (good) idea. trying....
Me No Dev
@me-no-dev
Nov 12 2015 00:09
//this line
tools.espota.upload.pattern="{cmd}" "{path}/espota.py" -i "{serial.port}" -p 8266 -f "{build.path}/{build.project_name}.bin"
//should be changed to
tools.espota.upload.pattern="{cmd}" "{path}/espota.py" -i [put-ip-here] -p 8266 -f "{build.path}/{build.project_name}.bin"
then restart the IDE
brutzler
@brutzler
Nov 12 2015 00:15
oh, didn't see your code. But got the same result. brackets are important. And no restart of IDE needed.
and WORKING
brutzler
@brutzler
Nov 12 2015 00:21
looks like this is the way I will go, until there will be a major update for OTA. Main aim was to get rid of the telnet-server.
Thx for this interesting chat. Was very helpful for me. going to bed now. 01:21 oh oh
Steve Nelson
@zenmanenergy
Nov 12 2015 04:43
is there a way to force/request a specific localIP address when an esp connects to an SSID? Like a static IP address?
brutzler
@brutzler
Nov 12 2015 06:35
out of my code:
IPAddress ip(192,168,1,66);
IPAddress gateway(192,168,1,1);
IPAddress subnet(255,255,255,0);
void WiFi_setup() {
WiFi.config(ip,gateway,subnet);
WiFi.begin(ssid, password);
...
Me No Dev
@me-no-dev
Nov 12 2015 08:55
@zenmanenergy there is a way you can set the IP manually
Check the usage of "WiFi.conf()" and I think there is an example also
brutzler
@brutzler
Nov 12 2015 09:15
WiFi.config(), I suppose. Like I posted one above.
Me No Dev
@me-no-dev
Nov 12 2015 10:34
seems like I woke up blind today... :D
brutzler
@brutzler
Nov 12 2015 11:08
was too late last night ;-)
what time zone are you?
Me No Dev
@me-no-dev
Nov 12 2015 11:19
GMT+2
I think that is 1 hour difference
brutzler
@brutzler
Nov 12 2015 11:23
Yes, here UTC+1
frippe75
@frippe75
Nov 12 2015 14:51
Hi! Can I ask a question about installation here?
Me No Dev
@me-no-dev
Nov 12 2015 14:55
why not :)
brutzler
@brutzler
Nov 12 2015 16:47
I think this was the question. LOL
frippe75
@frippe75
Nov 12 2015 18:10
Back again :-) Was pulled away for work. I have installed multiple versions of Arduino, 1.6.5, 1.6.6 and now 1.6.7. 1.6.5 using the board manager (stable), 1.6.6 using board manager(staging) and 1.6.7 using git. Any link's describing a good way to run a multiversion setup? Getting problem with missing keyvalue-pairs in preferences.txt for OTA. 1.6.7 with git installed ESP8266 library "does not work", i.e cannot find the boards or examples.
All versions using the .arduino15/... directory...
Markus
@Links2004
Nov 12 2015 18:14
add a dir called "portable" inside the Arduino dir, then this one is used.
frippe75
@frippe75
Nov 12 2015 18:19
Thanks Links2004! The keyword portable was google-magic!
Possibly any idea on why the boards/examples from the git install of 1.6.7 does not get picked up? Related to using the old/same preferences.txt file?
Markus
@Links2004
Nov 12 2015 18:22
are all examples missing or only the esp8266/examples
may its the missing library.properties then
#965
frippe75
@frippe75
Nov 12 2015 18:25
only esp8266 things are missing. did the clone from .....harware/esp8266com/ dir followed by the python get.py. Will look into the issue, thanks again!
frippe75
@frippe75
Nov 12 2015 20:37
Appreciate the help! Went for Arduino 1.6.5-r5 clean-install, all of the above and it's now portable. Perfect! Looks like the ArduinoOTA is the latest one for OTA. Will goahead and work that in to my sketch of interest :-)
frippe75
@frippe75
Nov 12 2015 21:15
This message was deleted

Uploaded the BasicOTA to my Huzzah, it's ready with the IP below. ping works.
error: cannot access 192.168.0.219
error: espcomm_open failed

Tell me if you think this is more forum related.
But I cannot figure out what versions of what that gets OTA working. Onces I got BasicOTA sketch installed I tried uploading using 1.6.5, 1.6.6 and .1.6.7 and nightly.

Ivan Grokhotkov
@igrr
Nov 12 2015 21:21
@frippe75 get a version from this pull request: https://github.com/arduino/Arduino/pull/4107#issuecomment-155714779
this includes latest changes waiting to be merged into Arduino repository
frippe75
@frippe75
Nov 12 2015 21:28
Thanks will try that out!
With ESP8266-git,staging or stable?
Me No Dev
@me-no-dev
Nov 12 2015 21:33
with latest git pull
frippe75
@frippe75
Nov 12 2015 21:33
never mind!
ok!
Me No Dev
@me-no-dev
Nov 12 2015 21:33
you need the very latest code in the repo
frippe75
@frippe75
Nov 12 2015 21:36
KaAA-Baam! like-a-charm! thanks! Will actually get some sleep tonight... ;-)