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

Bug: Saving configuration made change in option display #39

Open
GregAscolab opened this issue May 15, 2024 · 0 comments
Open

Bug: Saving configuration made change in option display #39

GregAscolab opened this issue May 15, 2024 · 0 comments

Comments

@GregAscolab
Copy link
Contributor

Pb Description

Automatic change in config.json file when saving, change web page option displayed !!!

Configuration

I work on captive portal (Access point), using some default Wifi_SSID and Wifi_PASS for connection.
Not tested in Wifi network mode.

Step to reproduce

  1. Load code with no existing file in filesystem.

Autogenerating config.json file :

{
  "wifi-box": "",
  "param-box1": "Mobile Network",
  "PIN code": "",
  "GPRS APN": "iot.1nce.net",
  "GPRS Username": "",
  "GPRS Password": "",
  "param-box6": "ThingsBoard",
  "Device Name": "dev_name",
  "ThingsBoard server address": "thingsboard.cloud",
  "ThingsBoard server port": 80,
  "Provisioning device key": "aaaaaaaaa",
  "Provisioning secret key": "bbbbbbbb",
  "ThingsBoard device token": "",
  "ThingsBoard MQTT server address": "mqtt.thingsboard.cloud",
  "ThingsBoard MQTT server port": 1883,
  "raw-html-ts": "/config/raw-html-ts.htm",
  "raw-javascript-ts": "/config/raw-javascript-ts.js"
}

Associated screens :
image

image

image

image

Everythings seems OK

  1. Change some value in "thingsboard" option tab
    Name = Test_dev_name (fin my example)

  2. Click save button

config.json file after saving :

{
  "wifi-box": "",
  "param-box1": "Mobile Network",
  "PIN code": "",
  "GPRS APN": "iot.1nce.net",
  "GPRS Username": "",
  "GPRS Password": "",
  "param-box6": "ThingsBoard",
  "Device Name": "Test_dev_name",
  "ThingsBoard server address": "thingsboard.cloud",
  "ThingsBoard server port": 80,
  "Provisioning device key": "aaaaaa",
  "Provisioning secret key": "bbbbbb",
  "ThingsBoard device token": "",
  "ThingsBoard MQTT server address": "mqtt.thingsboard.cloud",
  "ThingsBoard MQTT server port": 1883,
  "raw-html-ts": "/config/raw-html-ts.htm",
  "raw-javascript-ts": "/config/raw-javascript-ts.js",
  "dhcp": false
}

Please note that the "dhcp" entry appears.

  1. Reload "/setup" page (F5 of browser)
    We got these screenshoot :
    Same page except "Thingsboard" tab :
    image

PROBLEM: The "dhcp" option appears !!!

  1. Go to the "Wifi Setup" option tab

  2. Click "manual configuration (no DHCP)" button
    image

  3. Click "save configuration" button

config.json file after saving :

{
  "wifi-box": "",
  "param-box1": "Mobile Network",
  "ip_address": "undefined",
  "gateway": "undefined",
  "subnet": "undefined",
  "PIN code": "",
  "GPRS APN": "iot.1nce.net",
  "GPRS Username": "",
  "GPRS Password": "",
  "param-box6": "ThingsBoard",
  "Device Name": "Test_dev_name",
  "ThingsBoard server address": "thingsboard.cloud",
  "ThingsBoard server port": 80,
  "Provisioning device key": "aaaaaa",
  "Provisioning secret key": "bbbbbb",
  "ThingsBoard device token": "",
  "ThingsBoard MQTT server address": "mqtt.thingsboard.cloud",
  "ThingsBoard MQTT server port": 1883,
  "raw-html-ts": "/config/raw-html-ts.htm",
  "raw-javascript-ts": "/config/raw-javascript-ts.js",
  "dhcp": true
}
  1. Refresh "/setup" page (F5)

image

image

PROBLEM : ip address, gateway, subnet appears on "Mobile Network" option tab !!!

@GregAscolab GregAscolab changed the title Bug: Saving configuraiton made change in option display Bug: Saving configuration made change in option display May 15, 2024
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

1 participant