๐ Website : https://rufus31415.github.io
๐ฆ Twitter : https://twitter.com/rufus31415
๐ง Mail : [email protected]
๐พ Discord : Rufus31415#2440
Arduino & .NET serial communication library to read/write variables and remote call functions using the Sharer protocol. Works on Windows, Linux and MacOS.
License: MIT License
๐ Website : https://rufus31415.github.io
๐ฆ Twitter : https://twitter.com/rufus31415
๐ง Mail : [email protected]
๐พ Discord : Rufus31415#2440
Hi, I seem to have some sort of problem with your library.
My sketch works fine while using an Arduino Uno, but on Micro and Leonardo there are some issues.
'The serial communication is connected but Sharer is not available. Ensure that Sharer.Run() is called in loop() function and that setup() function takes less than 10000ms.' is thrown.
For what I read online, DTR and RTS should be enabled on the C# side, but I can't do that since your dll does not accept that parameters (I think).
Calling a shared function inside of the event handler (in C#) of the UserDataReceived event throws a System.Exception that reads "Error while calling function [function_name]".
I am trying to use Sharer from a cpp Arduino library. Valiables(Sharer_ShareVariable) works very nice (read and write) but i am having problem with functions.
Have tried:
Sharer_ShareVoid(MYLIBRARYCLASS::dataUpdated);
void MYLIBRARYCLASS::dataUpdated() {
}
Compiler Error:
......\Arduino\libraries\Sharer\src/Sharer.h:248:76: error: qualified-id in declaration before '[' token
static const SharerClass::_SharerFunctionArgument functionName ## _args[] = {\
Sharer_ShareVoid(dataUpdated);
void MYLIBRARYCLASS::dataUpdated() {
}
OR
void dataUpdated() {
}
Compiler Error:
......\Arduino\libraries\Sharer\src/Sharer.h:262:561: error: 'this' was not captured for this lambda function
functionName (_SHARER_GET_OVERRIDE(VA_ARGS, _SHARER_DECLARE_CALL10, SHARER_DECLARE_CALL9, _SHARER_DECLARE_CALL9, SHARER_DECLARE_CALL8, _SHARER_DECLARE_CALL8, SHARER_DECLARE_CALL7, _SHARER_DECLARE_CALL7, SHARER_DECLARE_CALL6, _SHARER_DECLARE_CALL6, SHARER_DECLARE_CALL5, _SHARER_DECLARE_CALL5, SHARER_DECLARE_CALL4, _SHARER_DECLARE_CALL4, SHARER_DECLARE_CALL3, _SHARER_DECLARE_CALL3, SHARER_DECLARE_CALL2, _SHARER_DECLARE_CALL2, SHARER_DECLARE_CALL1, _SHARER_DECLARE_CALL1, _SHARER_DECLARE_CALL0)(functionName, VA_ARGS) );\
As i wrote before class member properties work very well with Sharer_ShareVariable, please advise
I try share the printString function:
void setup() { Sharer.init(115200); Sharer_ShareFunction(bool, printString, char[], msg); } bool printString(char[] msg) { lcd.clear(); lcd.print(msg); return true; }
in C#
conn.Call("printString", "HELLO");
I want print my message to LCD display.
Error message: Input is a not correct format
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.