israellot / esp-ginx

HTTP server for the ESP8266
MIT License
190 stars 46 forks source link

Arduinostyle library and DS18B20 sensor support added #3

Closed HaknCo closed 9 years ago

israellot commented 9 years ago

I've merged the sensor commit. I'm not sure about the need for another library in the project. We should either dump the current one and stick to the arduino style or just improve what's already there. It's a lot of redundant code.

HaknCo commented 9 years ago

I agree we should decide which one to use. I think the arduinostyle is more intuitive, but I am not sure, I justed ported it in order to test SPI. I think the library is doing bit-banging SPI. I will inform you when I have some results.

By the way, today I had some time to play around with ieee80211_send_probereq. You can set the SSID as you wrote, but I could not succeed to set any Information Element (IE). According to the FreeBSD header this should be possible. Will keep trying.

I also tested ieee80211_send_action_register and ieee80211_send_action, but no success. But I think I know how to go further.

Cheers, Hakan

Von: israellot notifications@github.com Antworten an: israellot/esp-ginx <reply+00ba50b6433cc43d94e20b1d8641aa9242b2fdb1184be28092cf000000011160d2689 2a169ce04549909@reply.github.com> Datum: Dienstag, 5. Mai 2015 20:48 An: israellot/esp-ginx esp-ginx@noreply.github.com Cc: HaknCo hakan@coskun.org Betreff: Re: [esp-ginx] Arduinostyle library and DS18B20 sensor support added (#3)

I've merged the sensor commit. I'm not sure about the need for another library in the project. We should either dump the current one and stick to the arduino style or just improve what's already there. It's a lot of redundant code.

‹ Reply to this email directly or view it on GitHub https://github.com/israellot/esp-ginx/pull/3#issuecomment-99178211 .

israellot commented 9 years ago

Let me know if you have any advances on that! The information elements are taken from a config struct that I'm not sure are exactly the same as in the freebsd code. I've tried some offsets without success. There are some undocumented ROM functions that look promising.

ppTxPkt should be the one where we can pass a buffer with the raw 802.11 packet. ieee80211_send_probereq internally calls this function to output the probe. Maybe we should focus on that.