Broken Code with SDK 2.2 and newer

Inquisitor
Posts: 22
Joined: Thu Dec 14, 2017 10:53 am
Contact:

Re: Broken Code with SDK 2.2 and newer

Postby Inquisitor » Fri Dec 24, 2021 5:50 am

AgentSmithers wrote:LMAO, no your fine.. I should of packed up a thumbdrive and sent over a carrier pigeon lol. I'll keep watch for your reply if you need anything else. I still use this OVA today for alot of my programming so should work like a charm.


For someone that spent the last twenty years of my career tied to fiber, this feels like using smoke-signals. For S&G, I started a download at home while all the tourist and locals are at home for the holidays... projected to be three+ days to download. Drove over to the library... and seven whole minutes to download. It's all GOOD! :D Next...

  1. Fortunately, I had VirtualBox loaded and a couple of Windows VM's that I know work.
  2. Imported just fine.
  3. Trying to boot up, it complained about the NIC card, but apparently that is a Virtual Box setting and it let me swap that over.
  4. Next it complained about my USB. It let me select the USB 1.1 and didn't complain (I have 2.0 and 3.0 ports on my desktop) Hoping if that is a problem, it'll let me upgrade them by detection and download over the Internet once I get in.
  5. It booted up and I'm now at the login... I tried all kinds of accounts/passwords... <blank>, sudo, su, password, passW0rd, pw, AgentSmithers, Inquisitor... and looked on the Internet for defaults for CentOS. Those didn't work either.

Seems like I'm close.

P.S. - I came from a Microsoft Windows development background and use the Arduino IDE for the MPU's... :? IOW... I barely know what a make file is... and have never knowingly opened one up. Even my baby step into PlatformIO have sheltered me from those evil files. :D If it's not too much trouble, a small project with make file would be great. Although, I probably could dig out the example projects from Espressif.

Oh... and no rush. Don't let this interfere with your holidays.

VBR
3 lines of code = App/Web Server w/ GUI Admin, File Mngr, OTA, AP Mgr, Perf Metrics, WebSocket Comms, App API, All running on ESP8266... Even usable on ESP-01S
https://www.esp8266.com/viewtopic.php?f=11&t=23535
https://InqOnThat.com

AgentSmithers
Posts: 195
Joined: Sat Apr 01, 2017 1:21 am
Contact:

Re: Broken Code with SDK 2.2 and newer

Postby AgentSmithers » Fri Dec 24, 2021 8:35 am

Ohh Yeea yea yea.. DuuuR!! I think its the default kali password like root or toor.. my bad.. let me test.. brb
*Edit* Yep, this is set to

osboxes.org <--- same as username. This is the default from osboxes.org (of course)

Inquisitor
Posts: 22
Joined: Thu Dec 14, 2017 10:53 am
Contact:

Re: Broken Code with SDK 2.2 and newer

Postby Inquisitor » Wed Jan 05, 2022 11:39 pm

Sorry for the delay... my wife surprised me with a mini vacation after Christmas with the understanding - no computers were allowed. :D

I got it working... here are the results.
My program runs fine on your environment, as well as PlatformIO environments and on the Arduino environment versions too... IF... I include a call to espconn_init().

Some time ago, I read one post on another thread mentioning this method, but adding it to my projects gave compiler errors. So I discounted the post as being for an older version. The thing is... this call wasn't needed in SDK 2.2 and earlier.

Anyway, I was working backwards though the available Espressif codebase from the espconn_regist_disconcb() method and ran into... wait for it... espconn_init() in an Espressif C file. But it had no corresponding H file declaring it. I simply added my own declaration...

extern "C" void ICACHE_FLASH_ATTR espconn_init(void);

and added the call in my startup code... and Wham, bam, thank you mam! My disconnect callback started getting called and all was right with the world.

Thanks for your help!
3 lines of code = App/Web Server w/ GUI Admin, File Mngr, OTA, AP Mgr, Perf Metrics, WebSocket Comms, App API, All running on ESP8266... Even usable on ESP-01S
https://www.esp8266.com/viewtopic.php?f=11&t=23535
https://InqOnThat.com

AgentSmithers
Posts: 195
Joined: Sat Apr 01, 2017 1:21 am
Contact:

Re: Broken Code with SDK 2.2 and newer

Postby AgentSmithers » Wed Jan 05, 2022 11:57 pm

Yea, for sure! Thanks for coming back around the confirming the issue and the fix for the rest of us!
Glad to know the OVA was of some assistance! =]

Who is online

Users browsing this forum: No registered users and 186 guests