8000 Serial feature by mjkl-gh · Pull Request #309 · rjwats/esp8266-react · GitHub
[go: up one dir, main page]

Skip to content

Serial feature #309

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

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
4b372f3
Add Streamserver
mjkl-gh Jan 2, 2021
21e092c
add Streamserver to main
mjkl-gh Jan 2, 2021
f6fd0bd
Add EventConsole
mjkl-gh Dec 25, 2021
b8145c6
Merge branch 'master' of https://github.com/rjwats/esp8266-react into…
mjkl-gh Dec 25, 2021
5e3b6e2
Merge branch 'serial' of https://github.com/mjkl-gh/esp-dsmr into ser…
mjkl-gh Dec 25, 2021
d99de58
Add SerialService
mjkl-gh Feb 7, 2021 8000
ebbf9f4
Comment out LogEventController
mjkl-gh Dec 25, 2021
5a69d33
Merge ser2net
mjkl-gh Dec 25, 2021
39a8d2d
Rename ser2net to serial
mjkl-gh Dec 25, 2021
c72cbc0
add baud to SerialStatus
mjkl-gh Feb 7, 2021
dc7b28c
WIP Serial page
mjkl-gh Feb 7, 2021
2b3996a
Merge fixes from main branch
mjkl-gh Dec 25, 2021
0c9d454
Merge remote-tracking branch 'refs/remotes/Upstream/master'
mjkl-gh Dec 25, 2021
9249d1e
WIP update serial feature to new format
mjkl-gh Jun 6, 2022
5888bdc
Merge remote-tracking branch 'Upstream/master' into SerialFeature-Fix
mjkl-gh Jun 6, 2022
cddf41e
fix Tab moved to @mui/material from @material-ui/core
mjkl-gh Jun 6, 2022
11fb837
styleguide fixes
mjkl-gh Jun 8, 2022
6725888
Fix typo in Serial status title
mjkl-gh Jun 16, 2022
70ec5fc
Set sensible defaults for serial pins for both platforms
mjkl-gh Jun 16, 2022
8710636
WIP logevent console
mjkl-gh Jun 16, 2022
a7148b4
Fix endpoint.ts and env.ts names
mjkl-gh Jun 16, 2022
0760a5e
Fix double dependency
mjkl-gh Jun 16, 2022
956aacc
Simplify serial feature
mjkl-gh Jun 19, 2022
436a00e
add numbervalue to serialsettingsform
mjkl-gh Jun 19, 2022
44b5c7e
Fix settings forms
mjkl-gh Jun 20, 2022
35f37f3
Remove unnecessary this
mjkl-gh Jun 20, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add numbervalue to serialsettingsform
  • Loading branch information
mjkl-gh committed Jun 19, 2022
commit 436a00ecf69565cf23ac20c70c7379c5df78bce0
12 changes: 6 additions & 6 deletions interface/src/framework/serial/SerialSettingsForm.tsx
5EC3
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import * as SerialApi from "../../api/serial";
import { SerialSettings } from '../../types';
import { BlockFormControlLabel, ButtonRow, FormLoader, SectionContent, ValidatedTextField } from '../../components';
import { validate, SERIAL_SETTINGS_VALIDATOR } from '../../validators';
import { updateValue, useRest } from '../../utils';
import { numberValue, updateValue, useRest } from '../../utils';

const SerialSettingsForm: FC = () => {
const [fieldErrors, setFieldErrors] = useState<ValidateFieldsError>();
Expand Down Expand Up @@ -51,7 +51,7 @@ const SerialSettingsForm: FC = () => {
label="rx pin"
fullWidth
variant="outlined"
value={data.rxpin}
value={numberValue(data.rxpin)}
onChange={updateFormValue}
margin="normal"
/>
Expand All @@ -61,7 +61,7 @@ const SerialSettingsForm: FC = () => {
label="tx pin"
fullWidth
variant="outlined"
value={data.txpin}
value={numberValue(data.txpin)}
onChange={updateFormValue}
margin="normal"
/>
Expand All @@ -71,7 +71,7 @@ const SerialSettingsForm: FC = () => {
label="Baud rate"
fullWidth
variant="outlined"
value={data.baud}
value={numberValue(data.baud)}
onChange={updateFormValue}
margin="normal"
/>
Expand All @@ -81,7 +81,7 @@ const SerialSettingsForm: FC = () => {
label="Config"
fullWidth
variant="outlined"
value={data.config}
value={numberValue(data.config)}
onChange={updateFormValue}
margin="normal"
/>
Expand All @@ -101,7 +101,7 @@ const SerialSettingsForm: FC = () => {
label="Port"
fullWidth
variant="outlined"
value={data.port}
value={numberValue(data.port)}
onChange={updateFormValue}
margin="normal"
/>
Expand Down
0