mirror of https://github.com/arendst/Tasmota.git
Happy New Year
This commit is contained in:
parent
dcbb3f1e0e
commit
fc93b05476
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
TasmotaSerial.cpp - Implementation of software serial with hardware serial fallback for Tasmota
|
TasmotaSerial.cpp - Implementation of software serial with hardware serial fallback for Tasmota
|
||||||
|
|
||||||
Copyright (C) 2020 Theo Arends
|
Copyright (C) 2021 Theo Arends
|
||||||
|
|
||||||
This library is free software: you can redistribute it and/or modify
|
This library is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
TasmotaSerial.h - Implementation of software serial with hardware serial fallback for Tasmota
|
TasmotaSerial.h - Implementation of software serial with hardware serial fallback for Tasmota
|
||||||
|
|
||||||
Copyright (C) 2020 Theo Arends
|
Copyright (C) 2021 Theo Arends
|
||||||
|
|
||||||
This library is free software: you can redistribute it and/or modify
|
This library is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
UdpListener.h - webserver for Tasmota
|
UdpListener.h - webserver for Tasmota
|
||||||
|
|
||||||
Copyright (C) 2020 Theo Arends & Stephan Hadinger
|
Copyright (C) 2021 Theo Arends & Stephan Hadinger
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
UnishoxStrings.c - support library for compressed strings in Flash
|
UnishoxStrings.c - support library for compressed strings in Flash
|
||||||
|
|
||||||
Copyright (C) 2020 Theo Arends and Stephan Hadinger
|
Copyright (C) 2021 Theo Arends and Stephan Hadinger
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
UnishoxStrings.c - support library for compressed strings in Flash
|
UnishoxStrings.c - support library for compressed strings in Flash
|
||||||
|
|
||||||
Copyright (C) 2020 Theo Arends and Stephan Hadinger
|
Copyright (C) 2021 Theo Arends and Stephan Hadinger
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -28,18 +28,18 @@
|
||||||
/*******************************************************************************************/
|
/*******************************************************************************************/
|
||||||
/*
|
/*
|
||||||
* UnishoxStrings compressed literal strings
|
* UnishoxStrings compressed literal strings
|
||||||
*
|
*
|
||||||
* To be typically used for web UI to have multiple strings like JS, CSS, HTML
|
* To be typically used for web UI to have multiple strings like JS, CSS, HTML
|
||||||
* compressed in a single list of small strings. This is where Unishox shines.
|
* compressed in a single list of small strings. This is where Unishox shines.
|
||||||
*
|
*
|
||||||
* Strings before compression are separated with NULL chars, which makes them ready to use
|
* Strings before compression are separated with NULL chars, which makes them ready to use
|
||||||
* once you know the offset in the global array.
|
* once you know the offset in the global array.
|
||||||
*
|
*
|
||||||
* The list of string is marked by an empty stings, i.e. two consecutive NULL chars
|
* The list of string is marked by an empty stings, i.e. two consecutive NULL chars
|
||||||
*
|
*
|
||||||
* To distinguish from uncompressed templates, and to indicate the global size
|
* To distinguish from uncompressed templates, and to indicate the global size
|
||||||
* the compressed array is prefixed with NULL and the uncompressed size * 16 bytes.
|
* the compressed array is prefixed with NULL and the uncompressed size * 16 bytes.
|
||||||
*
|
*
|
||||||
* Compressed format:
|
* Compressed format:
|
||||||
* - Byte 00 : \00 - if non-null, then it is not compressed
|
* - Byte 00 : \00 - if non-null, then it is not compressed
|
||||||
* - Byte 01 : <size16> - uncompressed size is <size16> * 16 bytes (always rounded up)
|
* - Byte 01 : <size16> - uncompressed size is <size16> * 16 bytes (always rounded up)
|
||||||
|
@ -54,22 +54,22 @@
|
||||||
* This class is initialzed with either a PMEM uncompressed list of strings
|
* This class is initialzed with either a PMEM uncompressed list of strings
|
||||||
* or a PMEM unishox-compressed list of strings; in this case RAM is allocated
|
* or a PMEM unishox-compressed list of strings; in this case RAM is allocated
|
||||||
* to hold the uncompressed data, until the class gets out of scope.
|
* to hold the uncompressed data, until the class gets out of scope.
|
||||||
*
|
*
|
||||||
* To encode, use https://tasmota.hadinger.fr/util
|
* To encode, use https://tasmota.hadinger.fr/util
|
||||||
* and use the "Compress strings template with unishox"
|
* and use the "Compress strings template with unishox"
|
||||||
* past the C code for the strings, and copy/paste the result
|
* past the C code for the strings, and copy/paste the result
|
||||||
* (don't foget to rename the variable).
|
* (don't foget to rename the variable).
|
||||||
*
|
*
|
||||||
* Input:
|
* Input:
|
||||||
* Each string must be terminated with an explicit NULL char "\0". The list is hence
|
* Each string must be terminated with an explicit NULL char "\0". The list is hence
|
||||||
* terminated with a double-NULL.
|
* terminated with a double-NULL.
|
||||||
*
|
*
|
||||||
* Each string is then indexed as its byte offset in the whole template.
|
* Each string is then indexed as its byte offset in the whole template.
|
||||||
* The offsets are computed at the same time as the compressed version.
|
* The offsets are computed at the same time as the compressed version.
|
||||||
* You need to use the online compressor even if you don't use the comrpessed version.
|
* You need to use the online compressor even if you don't use the comrpessed version.
|
||||||
*
|
*
|
||||||
* Indexes are marked as C++ comments starting with "//="
|
* Indexes are marked as C++ comments starting with "//="
|
||||||
*
|
*
|
||||||
* Example input:
|
* Example input:
|
||||||
* con
|
* con
|
||||||
* // start of strings
|
* // start of strings
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
JsonGenerator.cpp - lightweight JSON parser
|
JsonGenerator.cpp - lightweight JSON parser
|
||||||
|
|
||||||
Copyright (C) 2020 Stephan Hadinger
|
Copyright (C) 2021 Stephan Hadinger
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
JsonGenerator.h - lightweight JSON generator
|
JsonGenerator.h - lightweight JSON generator
|
||||||
|
|
||||||
Copyright (C) 2020 Stephan Hadinger
|
Copyright (C) 2021 Stephan Hadinger
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
JsonParser.cpp - lightweight JSON parser
|
JsonParser.cpp - lightweight JSON parser
|
||||||
|
|
||||||
Copyright (C) 2020 Stephan Hadinger
|
Copyright (C) 2021 Stephan Hadinger
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
JsonParser.h - lightweight JSON parser
|
JsonParser.h - lightweight JSON parser
|
||||||
|
|
||||||
Copyright (C) 2020 Stephan Hadinger
|
Copyright (C) 2021 Stephan Hadinger
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -228,7 +228,7 @@ public:
|
||||||
|
|
||||||
// destructor
|
// destructor
|
||||||
~JsonParser();
|
~JsonParser();
|
||||||
|
|
||||||
// set the current buffer for attribute access (i.e. set the global)
|
// set the current buffer for attribute access (i.e. set the global)
|
||||||
void setCurrent(void) { k_current_json_buffer = _json; }
|
void setCurrent(void) { k_current_json_buffer = _json; }
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
TasmotaModbus.cpp - Basic modbus wrapper for TasmotaSerial for Tasmota
|
TasmotaModbus.cpp - Basic modbus wrapper for TasmotaSerial for Tasmota
|
||||||
|
|
||||||
Copyright (C) 2020 Theo Arends
|
Copyright (C) 2021 Theo Arends
|
||||||
|
|
||||||
This library is free software: you can redistribute it and/or modify
|
This library is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
TasmotaModbus.h - Basic modbus wrapper for TasmotaSerial for Tasmota
|
TasmotaModbus.h - Basic modbus wrapper for TasmotaSerial for Tasmota
|
||||||
|
|
||||||
Copyright (C) 2020 Theo Arends
|
Copyright (C) 2021 Theo Arends
|
||||||
|
|
||||||
This library is free software: you can redistribute it and/or modify
|
This library is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
WiFi compat with ESP32
|
WiFi compat with ESP32
|
||||||
|
|
||||||
Copyright (C) 2020 Theo Arends / Jörg Schüler-Maroldt
|
Copyright (C) 2021 Theo Arends / Jörg Schüler-Maroldt
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
WiFi compat with ESP32
|
WiFi compat with ESP32
|
||||||
|
|
||||||
Copyright (C) 2020 Theo Arends / Jörg Schüler-Maroldt
|
Copyright (C) 2021 Theo Arends / Jörg Schüler-Maroldt
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"""
|
"""
|
||||||
decode-status.py - decode status for Tasmota
|
decode-status.py - decode status for Tasmota
|
||||||
|
|
||||||
Copyright (C) 2020 Theo Arends
|
Copyright (C) 2021 Theo Arends
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"""
|
"""
|
||||||
serial-plotter.py - for Tasmota
|
serial-plotter.py - for Tasmota
|
||||||
|
|
||||||
Copyright (C) 2020 Christian Baars
|
Copyright (C) 2021 Christian Baars
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -189,4 +189,3 @@ text_box.on_submit(submit)
|
||||||
|
|
||||||
if ser.is_open==True:
|
if ser.is_open==True:
|
||||||
plt.show()
|
plt.show()
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"""
|
"""
|
||||||
templates.py - template beautify TEMPLATES.md for Tasmota
|
templates.py - template beautify TEMPLATES.md for Tasmota
|
||||||
|
|
||||||
Copyright (C) 2020 Theo Arends
|
Copyright (C) 2021 Theo Arends
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|
Loading…
Reference in New Issue