node-nrf | Pure-JavaScript nRF24L01 driver library

 by   natevw JavaScript Version: Current License: No License

kandi X-RAY | node-nrf Summary

kandi X-RAY | node-nrf Summary

node-nrf is a JavaScript library. node-nrf has no bugs, it has no vulnerabilities and it has low support. You can install using 'npm i nrf' or download it from GitHub, npm.

Pure-JavaScript nRF24L01 driver library
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              node-nrf has a low active ecosystem.
              It has 119 star(s) with 31 fork(s). There are 14 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 37 open issues and 20 have been closed. On average issues are closed in 25 days. There are 6 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of node-nrf is current.

            kandi-Quality Quality

              node-nrf has no bugs reported.

            kandi-Security Security

              node-nrf has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              node-nrf does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              node-nrf releases are not available. You will need to build from source code and install.
              Deployable package is available in npm.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of node-nrf
            Get all kandi verified functions for this library.

            node-nrf Key Features

            No Key Features are available at this moment for node-nrf.

            node-nrf Examples and Code Snippets

            No Code Snippets are available at this moment for node-nrf.

            Community Discussions

            Trending Discussions on node-nrf

            QUESTION

            how can i parse JSON coming from a nrf24 Buffer?
            Asked 2019-Feb-06 at 00:13

            I am sending a valid JSON object constructed with ArduinoJSON to a RaspberryPi running node.js with the library https://github.com/natevw/node-nrf over a nrf24 radio link. The node.js server receives the data seemingly without problem. But for some reason I can't JSON.parse() the object (or buffer?) without getting a SyntaxError: Unexpected token in JSON at position ...

            For some reason the node-nrf library receives data backwards, so i need to reverse the order of the bytes with Array.prototype.reverse.call(d), and then console.log(d.toString()) and everything seems fine. In this case, the console gets Got data: [{"key":"a1","value":150}]. At this point, the content of the buffer looks like : Buffer 5b 7b 22 6b 65 79 22 3a 22 61 31 22 2c 22 76 61 6c 75 65 22 3a 31 35 30 7d 5d 00 00 00 00 00 00. Those are the actual 32 bytes that the nrf24 buffer contains i guess.

            But then, when the code gets to the JSON.parse() call, i get SyntaxError: Unexpected token in JSON at position 26. This is the position my object data actually ends in the buffer.

            I've also experimented with .toJSON() and JSON.stringify() , but can't actually get a proper object to use ( ie. obj.key, obj.value). It's only returning undefined properties. It seems to me the parsing fails when it reaches the end of the object. I've also tried to match the buffer size with the actual size of the message just to see if the parsing would succeed to no avail !

            I am probably very mixed up in concepts of buffers, streams, pipes and objects ... what am i doing wrong ?

            I need ideas (or fixes!)

            Code running on the receiving end in node.js:

            ...

            ANSWER

            Answered 2019-Feb-05 at 07:22

            Parse 'buffer data' into 'string' like:

            Source https://stackoverflow.com/questions/54526907

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install node-nrf

            You can install using 'npm i nrf' or download it from GitHub, npm.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/natevw/node-nrf.git

          • CLI

            gh repo clone natevw/node-nrf

          • sshUrl

            git@github.com:natevw/node-nrf.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular JavaScript Libraries

            freeCodeCamp

            by freeCodeCamp

            vue

            by vuejs

            react

            by facebook

            bootstrap

            by twbs

            Try Top Libraries by natevw

            fermata

            by natevwJavaScript

            PeerPouch

            by natevwJavaScript

            pi-spi

            by natevwC++

            ipcalf

            by natevwHTML

            evel

            by natevwJavaScript