fairydevicesrd / libmimiio Goto Github PK
View Code? Open in Web Editor NEWmimi(R) WebSocket API Service client library
License: Apache License 2.0
mimi(R) WebSocket API Service client library
License: Apache License 2.0
examples/mimiio_tumbler/mimiio_tumbler_ex2/のプログラムを動かしていて気付いたのですが、エラーメッセージの一部が文字化けしています。
Could not open mimi(R) API service. mimi_open() failed: p��socket connection error no handshake, no connection. (801), retry = 1
mimi connection is successfully opened.
mimi connection is successfully started, decoding starts...
調べてみると、const char* mimi_strerror(int errorno)が返している文字列の先頭部分がおかしいようです。
inline std::string strerror(int errorno)の戻り値の型をconst char*に変更し、 mimi_strerror(int errorno)の中をreturn mimiio::strerror(errorno);に変更すれば正しい文字列が表示されるようになりました。
この変更方法が適切かどうかは不明なのでpull requestにはしませんでした。
Segmentation fault caused by interrupt(Ctrl-C) in mimiio_tumbler_ex2.
$ cd ~/setup/libmimiio-master/examples/mimiio_tumbler/mimiio_tumbler_ex2
$ ./mimiio_tumbler_ex2 --host=xxxx --port=xxx --token=xxxxxxxxx --verbose
XFE recording stream is successfully initialized.
XFE recording stream is successfully started.
[[ YOU CAN SPEAK NOW ]]
^CStream is to be finished...
Segmentation fault
$
Lines 44 to 46 in d6e278b
ソース固定で変更できないようになっている。
利用時に設定変更可能としてほしい。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.