Skip to content

Instantly share code, notes, and snippets.

@sillyfrog
sillyfrog / Exception
Created June 24, 2018 05:47
homie-esp8266 exception
Decoding stack results
0x4022c300: tcp_write at core/tcp_out.c line 680
0x4022c2a9: tcp_write at core/tcp_out.c line 628
0x40214379: AsyncClient::add(char const*, unsigned int, unsigned char) at /Users/user/Documents/Arduino/libraries/ESPAsyncTCP/src/ESPAsyncTCP.cpp line 255
0x4023f964: umm_free_heap_size at /Users/user/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.1/cores/esp8266/umm_malloc/umm_malloc.c line 1745
0x40207278: xPortGetFreeHeapSize at /Users/user/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.1/cores/esp8266/heap.c line 162
0x4021d510: EspClass::getFreeHeap() at /Users/user/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.1/cores/esp8266/Esp.cpp line 165
0x4021e490: UpdaterClass::begin(unsigned int, int) at /Users/user/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.1/cores/esp8266/Updater.cpp line 118
0x40220940: HomieInternals::Logger::write(unsigned char) at /Users/user/Documents/Arduino/libraries/homie-esp8266/src/Homie/Logger.cpp line 21
@sillyfrog
sillyfrog / pip.md
Created November 10, 2018 22:17
pip in Jython

To use pip, you must be running Jython v2.7.1 (downloaded from here: http://search.maven.org/remotecontent?filepath=org/python/jython-standalone/2.7.1/jython-standalone-2.7.1.jar). This is not compatible with Esper, so be sure to remove all of these files before upgrading, ie:

rm -rf ./automation/jsr223/000_components/000_Esper.py ./automation/lib/python/esper

With v2.7.1 installed, we can run the Jython from the openHAB installation to install pip

java -jar /openhab/conf/automation/jython/jython-standalone-2.7.1.jar -m ensurepip