mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 10:46:31 +00:00
Remove bytes from Tasmota specific
This commit is contained in:
parent
57c7033987
commit
1fbe52df06
@ -497,19 +497,6 @@ end
|
|||||||
5. **Performance**: Use fast_loop sparingly, prefer regular driver events
|
5. **Performance**: Use fast_loop sparingly, prefer regular driver events
|
||||||
6. **Debugging**: Enable `#define USE_BERRY_DEBUG` for development
|
6. **Debugging**: Enable `#define USE_BERRY_DEBUG` for development
|
||||||
|
|
||||||
### Tasmota Extensions to Standard Modules
|
|
||||||
|
|
||||||
#### `bytes` class extensions
|
|
||||||
```berry
|
|
||||||
b = bytes("1122AA") # From hex string
|
|
||||||
b = bytes(-8) # Fixed size buffer
|
|
||||||
b.tohex() # To hex string
|
|
||||||
b.tob64() # To base64
|
|
||||||
b.fromhex("AABBCC") # Load from hex
|
|
||||||
b.fromb64("SGVsbG8=") # Load from base64
|
|
||||||
b.asstring() # To raw string
|
|
||||||
```
|
|
||||||
|
|
||||||
## Common Tasmota Berry Patterns
|
## Common Tasmota Berry Patterns
|
||||||
|
|
||||||
### Simple Sensor Driver
|
### Simple Sensor Driver
|
||||||
|
Loading…
x
Reference in New Issue
Block a user