Comments (5)
base
- that's the word I needed
from libretiny.
Let me crosspost the message I posted today on our Discord server:
Testers needed for the new structure-refactor
branch 🙂
I think I've changed everything (or most) of what I wanted to change - what's left now (except for a few cosmetic changes) is testing. I've been testing for compilation errors, and if it boots (but roughly). That being said, there shouldn't be any difference in stability or compilation issues (compared to the current LibreTuya master branch, after GCC updates).
If you'd like to help testing the new version:
- get a device to which you have easy UART access - just in case something goes wrong in the OTA process. The OTA format is changed a bit (under the hood); it is backwards compatible (meaning you can update old devices), but you can't revert to LT v0.12.6 or older
- install LT v1.0.0 (alpha) -
platformio platform install -f https://github.com/kuba2k2/libretuya#structure-refactor
- clone updated ESPHome -
git clone https://github.com/kuba2k2/libretuya-esphome -b platform/lt-refactor
- compile your YAMLs, as usual - make sure to uninstall old esphome (or install the new one, using
pip install
- see the docs)
Let me know about any problems/questions in the thread here. Happy testing!
from libretiny.
Currently proposed project structure:
Click to expand
cores/ ├── common/ │ ├── arduino/ │ │ ├── libraries/ │ │ │ ├── api/ │ │ │ │ ├── LT/ │ │ │ │ │ ├── LT.cpp │ │ │ │ │ └── LT.h │ │ │ │ ├── SoftwareSerial/ │ │ │ │ │ ├── SoftwareSerial.cpp │ │ │ │ │ └── SoftwareSerial.h │ │ │ │ ├── OTA/ │ │ │ │ │ ├── OTA.cpp │ │ │ │ │ └── OTA.h │ │ │ │ └── WiFi/ │ │ │ │ ├── WiFi.cpp │ │ │ │ ├── WiFi.h │ │ │ │ ├── WiFiAP.cpp │ │ │ │ ├── ... │ │ │ │ └── WiFiType.h │ │ │ ├── common/ │ │ │ │ ├── Flash/ │ │ │ │ │ ├── Flash.cpp │ │ │ │ │ └── Flash.h │ │ │ │ ├── IPv6Address/ │ │ │ │ │ ├── IPv6Address.cpp │ │ │ │ │ └── IPv6Address.h │ │ │ │ ├── MD5/ │ │ │ │ │ ├── MD5.h │ │ │ │ │ ├── MD5MbedTLSImpl.cpp │ │ │ │ │ ├── MD5MbedTLSImpl.h │ │ │ │ │ └── ... │ │ │ │ ├── mDNS/ │ │ │ │ │ ├── LwIPmDNS.cpp │ │ │ │ │ ├── mDNS.cpp │ │ │ │ │ └── mDNS.h │ │ │ │ ├── Update/ │ │ │ │ │ ├── Update.cpp │ │ │ │ │ └── Update.h │ │ │ │ ├── WiFiClient/ │ │ │ │ │ ├── LwIPClient.cpp │ │ │ │ │ ├── ... │ │ │ │ │ └── WiFiClient.h │ │ │ │ └── WiFiServer/ │ │ │ │ ├── LwIPServer.cpp │ │ │ │ ├── ... │ │ │ │ └── WiFiServer.h │ │ │ └── ext/ │ │ │ ├── base64/ │ │ │ ├── cbuf/ │ │ │ ├── HTTPClient/ │ │ │ ├── StreamString/ │ │ │ ├── WebServer/ │ │ │ └── WiFiMulti/ │ │ └── src/ │ │ ├── common/ │ │ │ ├── abi.cpp │ │ │ ├── ... │ │ │ └── WMath.cpp │ │ ├── compat/ │ │ │ ├── FS.h │ │ │ ├── pgmspace.h │ │ │ └── ... │ │ ├── posix/ │ │ │ └── time.c │ │ ├── Arduino.h │ │ ├── HardwareI2C.h │ │ ├── LibreTuyaAPI.cpp │ │ ├── LibreTuyaAPI.h │ │ ├── main.cpp │ │ ├── wiring_custom.c │ │ └── wiring_custom.h │ └── base/ │ ├── compat/ │ │ ├── libretuya.h -> ../lt_api.h │ │ ├── certs.h │ │ ├── netif.h │ │ ├── sockets.h │ │ └── ... │ ├── config/ │ │ ├── lwipopts.h │ │ ├── printf_config.h │ │ ├── fal_cfg.h │ │ └── fdb_cfg.h │ ├── fixups/ │ │ ├── lwip/ │ │ │ └── errno.h │ │ └── errno.h │ ├── posix/ │ │ ├── strcasecmp.c │ │ ├── strdup.c │ │ └── strptime.c │ ├── wraps/ │ │ ├── putchar.c │ │ └── puts.c │ ├── lt_api.c │ ├── lt_api.h │ ├── lt_chip.h │ ├── lt_config.h │ ├── lt_logger.c │ ├── lt_logger.h │ ├── lt_main.c │ └── lt_posix_api.h ├── beken-72xx/ │ ├── arduino/ │ │ ├── libraries/ │ │ │ ├── Serial/ │ │ │ │ ├── SerialClass.h │ │ │ │ └── SerialClass.cpp │ │ │ ├── SoftwareSerial/ │ │ │ │ └── SoftwareSerial.cpp │ │ │ ├── WiFi/ │ │ │ │ ├── WiFi.cpp │ │ │ │ ├── ... (no other headers) │ │ │ │ └── WiFiPrivate.h │ │ │ └── Wire/ │ │ │ ├── Wire.cpp │ │ │ └── Wire.h │ │ └── src/ │ │ ├── ArduinoFamily.h │ │ ├── main.cpp │ │ ├── wiring_analog.c │ │ ├── wiring_digital.c │ │ ├── wiring_irq.c │ │ └── wiring.c │ ├── base/ │ │ ├── config/ │ │ │ └── lwipopts.h │ │ ├── fixups/ │ │ │ ├── param_config.h │ │ │ └── uart_pub.h │ │ ├── fixups/ │ │ │ ├── arch_main.c │ │ │ ├── ate_app.c │ │ │ ├── ... │ │ │ └── intc.c │ │ ├── port/ │ │ │ ├── fal_flash_bk72xx_port.c │ │ │ ├── printf_port.h │ │ │ └── printf.c │ │ ├── wraps/ │ │ │ ├── BkDriverFlash.c │ │ │ └── wlan_ui.c │ │ ├── lt_defs.h │ │ └── sdk_private.h │ └── misc/ │ ├── bk7231_bsp.ld │ ├── bk7231n_bsp.ld │ └── bk72xx.cfg ├── beken-7231n/ │ └── base/ │ ├── config/ │ │ └── sys_config.h │ └── fixups/ │ └── temp_detect.c ├── beken-7231u/ │ └── base/ │ ├── config/ │ │ └── sys_config.h │ └── fixups/ │ └── boot_handlers_105_bk7231s.S ├── beken-7251/ │ └── base/ │ └── config/ │ └── sys_config.h ├── realtek-amb/ │ └── ... ├── realtek-ambz/ │ ├── ... │ └── misc/ │ ├── boot_all_77F7.bin │ └── ... └── realtek-ambz2/ ├── ... └── misc/ ├── bootloader.axf └── ...
Generated here.
from libretiny.
Moving all non-Arduino sources to a platform
/sdk
/libretuya
subdirectory, to align it better with arduino
.
from libretiny.
How is the refactor coming along? I want to contribute for the Beken chips once you have a layout defined.
from libretiny.
Related Issues (20)
- Reset to default
- RTL87xx chips don't support CHANGE interrupts HOT 2
- BK7231N : Save user data HOT 2
- LT 1.5.0 crashes with "RTL8195A Hard Fault Error" after WiFi scan HOT 4
- Error while compiling in HA HOT 1
- restore_mode ALWAYS_OFF not working on generic-bk7231n-qfn32-tuya HOT 1
- support for BK7231M(CB2S) HOT 19
- PlatformIO is Broken with "KeyError: \"Invalid board option 'build.family'\"" HOT 4
- Support for bk7238 HOT 3
- Wifi chip from Smart Plug reports as Rtl8710c How to flash or dump it? HOT 4
- [RTL8710BX] [T102_V1.1] [BL0937] pin change interrupts / Getting BL0937 to work with rtl87xx
- BK7231N : The compiled Firmware file size exceeds the flash memory HOT 3
- instructions contradictory in ltchiptool? HOT 6
- Further clarification to what 1.5M baud rate refers to HOT 2
- Problems when configuring wifi for devices using the BK7231N chip and connecting the device to the App HOT 2
- MOES WS-B-US 2 Button Smart Switch did not create other components such as binary_sensor, light, etc. in HA? HOT 2
- LibreTiny refactor HOT 3
- unable to write to BK7231M on CB2S HOT 7
- Intermittent connection issues with bk72xx ESPHome devices HOT 25
- Feature Request : Maintain constant state through reboot HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libretiny.