Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How add password to Wifi and HTTPS #89

Open
zerotrzy opened this issue Sep 10, 2020 · 3 comments
Open

How add password to Wifi and HTTPS #89

zerotrzy opened this issue Sep 10, 2020 · 3 comments

Comments

@zerotrzy
Copy link

zerotrzy commented Sep 10, 2020

Hello,

I flash my device with disaster-radio-1.0.0-rc.1 ttgoV2_flash.bin
How add password to wifi connections (and meybe disable BLE) ?

I can create a firmware
i cloning this repo cd to firmware and $pio run
I get firmware.bin but it is very small

original

`-rw-r--r--. 1 itt itt 4194304 04-14 16:13 ttgoV2_flash.bin

`my firmware

-rw-rw-r--. 1 itt itt 1755456 09-10 14:25 firmware.bin

How add password or compiling firmware on linux?

@BishopPeter1
Copy link

compile firmware:
pio run -t upload
pio run -t uploadfs

and maybe is better befor cupload to board:
esptool.py --baud 921600 erase_flash

https://github.com/sudomesh/disaster-radio#building-firmware and https://github.com/sudomesh/disaster-radio#flashing-firmware

@zerotrzy
Copy link
Author

zerotrzy commented Sep 10, 2020

@BishopPeter1
You sugest run $pio run -t upload
but How creating firmware similar normal distro? My compilation are smalest than normal compilation. It will not work.
This is a problem. My compilation is completly different than oficial 1.0.0.

@zerotrzy zerotrzy changed the title How add password How add password to Wifi and HTTPS Sep 10, 2020
@paidforby
Copy link
Contributor

Hey @zerotrzy, I built that binary by flashing a ttgo-lora32 board using pio run -t upload and then copying the flash memory from it, you can follow these instructions to create a binary, https://github.com/sudomesh/disaster-radio#creating-binary-for-release. However, if what you are trying to do is add a password to the wifi, you have need to add the code to do that before building and flashing the firmware. I think this feature would need to be added around this line https://github.com/sudomesh/disaster-radio/blob/master/firmware/main.ino#L145 . I don't remember the exact syntax for setting a password in AP mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants