Max Prokhorov
495fa18a27
Debug: log mode, allow to skip boot messages ( #2116 )
* debug: log mode, allow to skip boot messages
* typo, fix warning about unhandled switch
* mention telnet wifiserver & reverse changes
4 years ago
Max Prokhorov
298ce8cac2
Refactor get/set/del/hasSetting ( #2048 )
* experimental: refactor get/set/del/hasSetting
* sensors
* lights
* cleaup
* r
* tuya
* fixup! sensors
* fixup! tuya
* header defaults types
* fix lights
* setup already checks for max
* helper for flashstring
* fix overload
* oops
* refactor includes
* warnings
* test with migrate
* add ids in a separate file
* cleanup
rev: crash
rev: domoticz
rev: encoder
rev: loopdelay
rev: hass
rev: i2c
rev2: hass
rev: mqtt
rev: rfm69
rev: relay
rev: rpn
rev: settings setup
rev: hb settings
rev: telnet preprocessor fix
rev: settings wrap
rev: tspk bool style
rev: wifi types
rev: util hb
rev: settings
fixup! rev: settings
* rev: cleanup wifi injections based on new getters
* hasSetting now can return true for empty key
* show hardcoded network in web
* oops
* fix ws referencing wrong index
* ensure empty strings are written
* c/p
* use experimental schema style for payload, mark network as not deletable
* allow to customize converter
* shorter syntax, try using with wifi
* use proper #if syntax to handle definitions that are missing
* fixup ota sc checks getter, cast schEnabled to bool
* add utils header to sensors
4 years ago
Max Prokhorov
1949bc8e3b
Telnet: (optional) buffered output for AsyncTcp server ( #1929 )
* telnet: buffered output for async server
* telnet: make async buffer an option
* just use the queue containers directly
* try with simpler list
* exhaust buffers as much as possible in a single try
* don't forget to destroy the client object
* naming
* kill the connection earlier
* fix merge issues
5 years ago
Niek van der Maas
f3b35567d4
Added support for reverse telnet ( #1920 )
* Added support for reverse telnet
* Fix issues with first command being ignored
* Fix incorrect client creation
* Integrate PR 1927
5 years ago
Niek van der Maas
a0fc672816
Properly handle telnet negotiation ( #1927 )
* Get rid of _telnetFirst (assumption that first line is always telnet renegotiation)
Discussed in: #1920 (comment)
5 years ago
Max Prokhorov
21423431ce
Fixed size json payload & other WS bugfixes ( #1843 )
- update every dynamicjsonbuffer with fixed size constructor argument
- change to ws callback registration to use a class builder (just cosmetic)
- test multiple ws data callbacks for each module
- remove some of the static strings in favour of ws data callback
- improve sensor ws callback data size, remove duplicated strings
- use static buffer in wsDebugSend
- postpone wsSend until loop, implement wsPost to allow other modules to queue message callbacks. remove Ticker based ws callbacks for data
- update WebUI files
5 years ago
Niek van der Maas
9be43c364a
Telnet/WiFiServer: alternative to ESPAsyncTCP ( #1799 )
* Telnet rewrite, no longer using ESPAsyncTCP
* Support two telnet server implementations
* Clean up diff
* Update types, no free() calls, cleanup
* Use std::unique_ptr
* Fix nullptr checks
* Fix double log with async server
* Common new connection method
* use same connected() check as sync variant
* fixup! use same connected() check as sync variant
* Fix compile issue, close connection in case of timeout and when max connections reached
* Use AyncsClient* in function call
* Allow overriding telnet port + max clients
* Do not allocate 512 bytes by default
* Use TERMINAL_BUFFER_SIZE
5 years ago
Xose Pérez
546c8f09b2
Update Copyright notice
5 years ago
Max Prokhorov
b2ad29a660
Revert timestamp prepending, separate debug destinations
* Simply print timestamp for supported destinations
* Update ws destination to support 'prefix' sub-key
* Avoid void casting in telnet module
5 years ago
Xose Pérez
27e7b9ae89
Move terminal methods to own module
6 years ago
Xose Pérez
6a30360f01
Move crash code to it's own module
6 years ago
Max Prokhorov
de7ff7722c
Telnet password setting ( #1382 )
* Telnet auth depends on setting
* use same define suffix as WS_
* add to web
* no initial passwd for core
6 years ago
Xose Pérez
e9644229a1
Fix return value for _telnetWrite
6 years ago
Xose Pérez
261748e5e8
Option to disable password in telnet connections, default is enabled
6 years ago
Max Prokhorov
4423cd59f0
fix telnet client object deletion
6 years ago
Xose Pérez
8c8a268e5c
Added password check to telnet
6 years ago
Xose Pérez
e6570fe1bb
Triple click to enter WPS mode, fast LED blinking
6 years ago
Maxim Prokhorov
5708a23d2f
Immediatly close connection to avoid watchdog
6 years ago
Maxim Prokhorov
99311bbe71
Sometimes telnet spams this sequence
6 years ago
Maxim Prokhorov
ed609e6223
Handle C-d in telnet
6 years ago
Xose Pérez
fa20c47f29
Check which keys should be saved and which ones shouldn't ( #730 )
6 years ago
Xose Pérez
70f82aa2c4
Clear srash info after displaying it. Change copy
6 years ago
Xose Pérez
7a67729db1
Automatically dump info on telnet connection if TERMINAL_SUPPORT is disabled
6 years ago
Xose Pérez
4266bd07f0
Allow telnet access always when using the ESPurna Core image
6 years ago
Xose Pérez
2d2f44d3b5
Reset first telnet command on every connection
7 years ago
Xose Pérez
d69d6bfd54
Skip first garbage message in telnet module
7 years ago
Xose Pérez
2dc2b7d176
Checking code with cppcheck
7 years ago
Xose Pérez
af805ab045
Update copyright notices
7 years ago
Xose Pérez
3518a7bc5e
Websocket callbacks (part 2)
7 years ago
Xose Pérez
2dab43ec5d
Prevent reconnecting when in AP mode if a web session or a telnet session is active
7 years ago
Xose Pérez
64d502b6b6
Option to enable TELNET in STA mode from the Web UI
7 years ago
Xose Pérez
b6aa084529
Fix telnet connection dropping
7 years ago
Xose Pérez
59101eed3c
Accept 'quit' to exit from telnet session
7 years ago
Xose Pérez
b946cf32dd
Telnet support
7 years ago