Skip to content
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.

option to remove board name from web page #25

Closed
tomtobback opened this issue Feb 15, 2022 · 3 comments
Closed

option to remove board name from web page #25

tomtobback opened this issue Feb 15, 2022 · 3 comments
Labels
Support Library support

Comments

@tomtobback
Copy link

Is your feature request related to a problem? Please describe.

The web page shows inputs for 2 sets of wifi credentials, and the board name. In my project, i have no use for the board name and would like to keep it as simple as possible. Is there a way to remove the board name from the web page?

Describe the solution you'd like

It would be nice to have a #define USE_BOARD_NAME false that would enable to bypass the displaying of the field on the web page.

Describe alternatives you've considered

I was tempted to change the HTML in the source code, but it shows a warning and i'd have to do that again whenever the library is updated.

@khoih-prog
Copy link
Owner

To remove board name from web page, just use

void begin(const char *iHostname = "")

with iHostname equal space, such as changing from

WiFiManager_NINA->begin(HOST_NAME);

to

WiFiManager_NINA->begin(" ");

@khoih-prog khoih-prog added the Support Library support label Feb 16, 2022
@tomtobback
Copy link
Author

thanks i've tried it but i still see the Board Name input field in the web page form. i was thinking of an alternative solution, using WiFiManager_NINA->setCustomsStyle(NewCustomsStyle) to hide the element, but as far as i understand i can't do that because that <div> has no id so i can't select it in the style

khoih-prog added a commit that referenced this issue Feb 19, 2022
### Release v1.6.2

1. Optimize code by passing by `reference` instead of `value`
2. Optional `Board_Name` in Config Portal. Check [option to remove board name from web page #25](#25)
3. Update `Packages' Patches`
@khoih-prog
Copy link
Owner

Hi @tomtobback

Due to your vague description of your request, I was mistaken to think you'd like not to display the Board_Name on WebPage header. It turns out that you'd like not to use in Config Portal Menu.

Anyway, check the new WiFiManager_NINA_Lite releases v1.6.2 which has just been published.

Follow Not-using-Board_Name-on-Config_Portal

Best Regards,


Release v1.6.2

  1. Optimize code by passing by reference instead of value
  2. Optional Board_Name in Config Portal. Check option to remove board name from web page #25
  3. Update Packages' Patches

Selection_101

khoih-prog added a commit to khoih-prog/WiFiManager_Generic_Lite that referenced this issue Feb 21, 2022
### Release v1.6.0

1. Optimize code by passing by `reference` instead of `value`
2. Optional `Board_Name` in Config Portal. Check [option to remove board name from web page #25](khoih-prog/WiFiManager_NINA_Lite#25)
3. Add optional `CONFIG_MODE_LED` to be `ON` when in Config Portal mode. Check [Knowing when configuration mode is on or off #26](khoih-prog/WiFiManager_NINA_Lite#26)
4. Add function `isConfigMode()` to signal system is in Config Portal mode.
5. Update `Packages' Patches`
khoih-prog added a commit to khoih-prog/WiFiManager_Generic_Lite that referenced this issue Feb 21, 2022
### Release v1.6.0

1. Optimize code by passing by `reference` instead of `value`
2. Optional `Board_Name` in Config Portal. Check [option to remove board name from web page #25](khoih-prog/WiFiManager_NINA_Lite#25)
3. Add optional `CONFIG_MODE_LED` to be `ON` when in Config Portal mode. Check [Knowing when configuration mode is on or off #26](khoih-prog/WiFiManager_NINA_Lite#26)
4. Add function `isConfigMode()` to signal system is in Config Portal mode.
5. Update `Packages' Patches`
khoih-prog added a commit to khoih-prog/WiFiManager_Generic_Lite that referenced this issue Feb 21, 2022
### Release v1.6.0

1. Optimize code by passing by `reference` instead of `value`
2. Optional `Board_Name` in Config Portal. Check [option to remove board name from web page #25](khoih-prog/WiFiManager_NINA_Lite#25)
3. Add optional `CONFIG_MODE_LED` to be `ON` when in Config Portal mode. Check [Knowing when configuration mode is on or off #26](khoih-prog/WiFiManager_NINA_Lite#26)
4. Add function `isConfigMode()` to signal system is in Config Portal mode.
5. Update `Packages' Patches`
khoih-prog added a commit to khoih-prog/ESP_WiFiManager_Lite that referenced this issue Feb 21, 2022
### Release v1.8.2

1. Optimize code by using passing by `reference` instead of by `value`
2. Optional `Board_Name` in Menu. Check [option to remove board name from web page #25](khoih-prog/WiFiManager_NINA_Lite#25)
3. Add function `isConfigMode()` to signal system is in Config Portal mode.
khoih-prog added a commit to khoih-prog/ESP_WiFiManager_Lite that referenced this issue Feb 21, 2022
### Release v1.8.2

1. Optimize code by using passing by `reference` instead of by `value`
2. Optional `Board_Name` in Menu. Check [option to remove board name from web page #25](khoih-prog/WiFiManager_NINA_Lite#25)
3. Add function `isConfigMode()` to signal system is in Config Portal mode.
khoih-prog added a commit to khoih-prog/ESPAsync_WiFiManager_Lite that referenced this issue Feb 22, 2022
### Release v1.8.2

1. Optimize code by using passing by `reference` instead of by `value`
2. Optional `Board_Name` in Menu. Check [option to remove board name from web page #25](khoih-prog/WiFiManager_NINA_Lite#25)
3. Add function `isConfigMode()` to signal system is in Config Portal mode.
khoih-prog added a commit to khoih-prog/ESPAsync_WiFiManager_Lite that referenced this issue Feb 22, 2022
### Release v1.8.2

1. Optimize code by using passing by `reference` instead of by `value`
2. Optional `Board_Name` in Menu. Check [option to remove board name from web page #25](khoih-prog/WiFiManager_NINA_Lite#25)
3. Add function `isConfigMode()` to signal system is in Config Portal mode.
khoih-prog added a commit to khoih-prog/ESPAsync_WiFiManager_Lite that referenced this issue Feb 22, 2022
### Release v1.8.2

1. Optimize code by using passing by `reference` instead of by `value`
2. Optional `Board_Name` in Menu. Check [option to remove board name from web page #25](khoih-prog/WiFiManager_NINA_Lite#25)
3. Add function `isConfigMode()` to signal system is in Config Portal mode.
khoih-prog added a commit to khoih-prog/ESP_AT_WM_Lite that referenced this issue Feb 22, 2022
### Release v1.5.2

1. Optimize code by using passing by `reference` instead of by `value`
2. Optional `Board_Name` in Menu. Check [option to remove board name from web page #25](khoih-prog/WiFiManager_NINA_Lite#25)
3. Add function `isConfigMode()` to signal system is in Config Portal mode.
4. Update `Packages' Patches`
khoih-prog added a commit to khoih-prog/ESP_AT_WM_Lite that referenced this issue Feb 22, 2022
### Release v1.5.2

1. Optimize code by using passing by `reference` instead of by `value`
2. Optional `Board_Name` in Menu. Check [option to remove board name from web page #25](khoih-prog/WiFiManager_NINA_Lite#25)
3. Add function `isConfigMode()` to signal system is in Config Portal mode.
4. Update `Packages' Patches`
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Support Library support
Projects
None yet
Development

No branches or pull requests

2 participants