GithubHelp home page GithubHelp logo

Sending hexadecimal values about ardity HOT 6 CLOSED

dwilches avatar dwilches commented on July 24, 2024
Sending hexadecimal values

from ardity.

Comments (6)

dwilches avatar dwilches commented on July 24, 2024

Hi,

The reason of the error is that function expects a String as its argument, not a byte[].
I've been thinking of expanding the library to support arbitrary data to be sent/received. I think I can make this improvement now and you could use it when it's ready.

Could you tell me in your case how do you need to mark the end of your messages? are all of them of a fixed size or do they have a special delimiter at the end?

from ardity.

Meryemamr avatar Meryemamr commented on July 24, 2024

Hi,

The structure of the packet (3 to 16 bytes) ,the message (1 to 14 bytes),
It's delimiter it's FF in hexadecimal.
Help...
Thank you!

from ardity.

Meryemamr avatar Meryemamr commented on July 24, 2024

Helloo.....

from ardity.

dwilches avatar dwilches commented on July 24, 2024

Hello Meryemamr,

Please check the latest version of the library, now it supports custom delimiters.

I added an Arduino sample and a new Unity scene that shows how the new code is used. In both of them, I set the delimiter to 255 (0xFF).

Please let me know if it works well!
Regards.

from ardity.

Meryemamr avatar Meryemamr commented on July 24, 2024

Hello,
Thank you a lot,I did my tests the writing works well but i don't figure out how to
read from my camera ,i don't see the messages ,did i miss a thing??
thank's again,really appreciate your help!

from ardity.

dwilches avatar dwilches commented on July 24, 2024

Since I don't know about your implementation I can only guess: are you sure you are using the same char terminator that your camera is expecting? Have you a way to debug what messages your camera is receiving? Maybe your camera expects first some initialization commands and won't talk to you until you send them?

from ardity.

Related Issues (20)

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.