-
Notifications
You must be signed in to change notification settings - Fork 29
Feature/soft 5928 wasm #996
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: wasm
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Как предложение на будущее. Можно избавиться от вадидатора. Мы же работаем со своими запросами и своими схемами. Себе можем доверять. Тогда и собирать будет проще.
- Как-нибудь бы вынести специфичные части в отдельные файлики. Чтобы ifdef не были разбросаны по коду, а были один раз в начале файла для инклюдов и один раз в makefile для cpp
std::chrono::steady_clock::time_point NextOpenTryTime; | ||
util::TGetNowFn NowFn; | ||
}; | ||
|
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Можно общие инклюды сгруппировать?
@@ -0,0 +1,64 @@ | |||
{ |
There was a problem hiding this comment.
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() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Не надо делать реализации в заголовочном файле :)
There was a problem hiding this comment.
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'
...
Что происходит; кому и зачем нужно:
Добавил ветку для работы над проектом интеграции
wb-mqtt-serial
иhomeui
в web-приложение для настройки устройств без контроллера.Что поменялось для пользователей:
Ничего, это ветка для разработки и отладки упаковки
wb-mqtt-serial
в WASM + JS.Как проверял/а:
Написал тестовые скрипты, опросил настройки и поуправлял каналами WB-MR6C v.3 из браузера через USB-RS485 донгл.