Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

u236
Copy link
Contributor

@u236 u236 commented Sep 12, 2025

Что происходит; кому и зачем нужно:
Добавил ветку для работы над проектом интеграции wb-mqtt-serial и homeui в web-приложение для настройки устройств без контроллера.

Что поменялось для пользователей:
Ничего, это ветка для разработки и отладки упаковки wb-mqtt-serial в WASM + JS.

Как проверял/а:
Написал тестовые скрипты, опросил настройки и поуправлял каналами WB-MR6C v.3 из браузера через USB-RS485 донгл.

@u236 u236 marked this pull request as ready for review September 13, 2025 09:20
@u236 u236 requested review from KraPete and sikmir as code owners September 13, 2025 09:20
Copy link
Contributor

@KraPete KraPete left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Как предложение на будущее. Можно избавиться от вадидатора. Мы же работаем со своими запросами и своими схемами. Себе можем доверять. Тогда и собирать будет проще.
  2. Как-нибудь бы вынести специфичные части в отдельные файлики. Чтобы ifdef не были разбросаны по коду, а были один раз в начале файла для инклюдов и один раз в makefile для cpp

std::chrono::steady_clock::time_point NextOpenTryTime;
util::TGetNowFn NowFn;
};

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Мне не нравится, что в заголовочный файл заехали реализации. Можешь их в cpp убрать?

#include <string>
#include <sys/sysinfo.h>

#include "config_merge_template.h"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Можно общие инклюды сгруппировать?

@@ -0,0 +1,64 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Их бы все в отдельный каталог

class TWASMPort: public TPort
{
public:
TWASMPort()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не надо делать реализации в заголовочном файле :)

Copy link
Contributor

@sikmir sikmir Sep 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$ wbdev root
# apt update; apt install emscripten
# make templates
# ln -s ../libwbmqtt1/wblib wblib
# make -f wasm.mk
...
error: no matching function for call to 'ceil'
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants