Git Product home page Git Product logo

Comments (10)

timg11 avatar timg11 commented on September 3, 2024 1

If anyone is looking to make this work, I posted a modified version of user_main.c that initializes to Station mode (using a hard-coded SSID and WPA) to the ESP8266 forum.

from espusb.

atc1441 avatar atc1441 commented on September 3, 2024

sorry for double post, i think i found it in esp82xx/fwsrc/commonservices.c with grep but i am afraid of changing something in it.
will try some things :)

from espusb.

cnlohr avatar cnlohr commented on September 3, 2024

You can actually use the normal functions available in esp nonos sdk.

from espusb.

atc1441 avatar atc1441 commented on September 3, 2024

After some reading and google searching i was able to get it to work.
Here i got example codes: https://espressif.com/en/support/explore/sample-codes

Just add the needed code in the file/user/user_main.c under the segment: user_init(void)

i think you can find so less information about the sdk and esp8266, all is just in arduino.
for example i want to build something with the i2C and the sdk for the esp but its so hard to find a working example

from espusb.

cnlohr avatar cnlohr commented on September 3, 2024

Are you an I2C master? If so checkout what I have in wiflier. https://github.com/cnlohr/wiflier/tree/master/espfirmware/user

from espusb.

atc1441 avatar atc1441 commented on September 3, 2024

thank you for that.
i am at the begining of understanding C and how to comdine it will try it :)

from espusb.

stb68 avatar stb68 commented on September 3, 2024

Hi @atc1441, the link in your post above to example code doesn't work now, do you have an example of what to add to make the ESP connect to an existing network on startup?
Thanks

from espusb.

atc1441 avatar atc1441 commented on September 3, 2024

Hey. Sorry i need to search for it.

But look into the user init function maybe that helps you

from espusb.

stb68 avatar stb68 commented on September 3, 2024

Thanks, when I looked in there I couldn't see anything obvious to change so I'm thinking it'a all new bits to add in there.

from espusb.

stb68 avatar stb68 commented on September 3, 2024

If anybody else is trying this then I've found the code examples (previously at https://espressif.com/en/support/explore/sample-codes) here - https://web.archive.org/web/20170202091829/https://espressif.com/en/support/explore/sample-codes

Not sure what to do with them as I've done very little C programming spread very sparsly over a very long time and this is my first attempt at ESP but I'll give it a go.

from espusb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.