npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

rohm-sensormedal

v1.0.2

Published

ROHM SensorMedal-EVK-001 node.js

Downloads

12

Readme

ROHM-sensormedal-evk-001-nodejs

sensormedal このライブラリについて整理して、メソッドの追加とサンプルコードを追加したもの

導入方法

npm install rohm-sensormedal

サンプルコード

var SensorMedal = require('rohm-sensormedal');

//スキャン開始 デバイス名,デバイスUUIDが指定できる
var device = {"NAME":"ROHM RAW",
            "UUID":"cf1f047b-4d71-4183-a5ea-4a779debcc7f"};
//const device = {"NAME":"ROHM RAW"};
//const device = {"UUID":"cf1f047b-4d71-4183-a5ea-4a779debcc7f"};            
SensorMedal.startScanning(device);

//接続したSensorMedalの情報を取得
SensorMedal.on('medaldata', function(result) {
  //console.dir(result.peripheral);
  console.dir(result.data);
});

//スキャン停止する場合
//SensorMedal.stopScanning();

デバイス名やサービスUUIDの情報

デバイス名

ROHM RAW

Service UUID, Characteristic UUID

| Service UUID | Characteristic UUID | R/W,Notification | 内容 | |:-----------|:------------|:------------|:------------| | 0179bbc0-0000-0100-8000-00805f9b34fb | | SensorMedal-EVK-001サービス | | | 0179bbc1-0000-0100-8000-00805f9b34fb | Read || | | 0179bbc2-0000-0100-8000-00805f9b34fb | Write || | | 0179bbc3-0000-0100-8000-00805f9b34fb | Notification | 加速度,地磁気,角速度,気圧 | | | 0179bbc4-0000-0100-8000-00805f9b34fb | --- ||

参考

SensorMedal-EVK-001

Node.js のバージョンについて

node.js のバージョンによっては noble のインストールが上手くいかない。(node-gyp rebuild時にエラーとなる)
nodebrew などを導入して バージョンを指定して環境を作る必要がありそう。
nodebrewでnode.jsのバージョン切り替え

curl -L git.io/nodebrew | perl - setup #nodebrew インストール
nodebrew install v9.11.2 #9系の最後のバージョンをインストール
nodebrew use v9.11.2 #9系の最後のバージョンを有効にする