Git Product home page Git Product logo

sharer's Introduction

sharer's People

Contributors

rufus31415 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

devdotnetorg

sharer's Issues

Cannot communicate with Arduino Micro/Leonardo

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).

Using Library from another Arduino library

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

What I make false?

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.