New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

thingy52_web_bluetooth

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

thingy52_web_bluetooth - npm Package Compare versions

Comparing version 1.4.1 to 1.5.0

js/DFUControlPointService.js

2

js/FeatureOperations.js

@@ -279,3 +279,3 @@ /*

if (!this.hasProperty("notify")) {
if (!this.hasProperty("notify") && !this.hasProperty("indicate")) {
const error = new Error(`The ${this.type} feature does not support the start/stop methods`);

@@ -282,0 +282,0 @@ this.utilities.processEvent("error", this.type, error);

@@ -65,2 +65,3 @@ /*

import EventTarget from "./EventTarget.js";
import DFUControlPointService from "./DFUControlPointService.js";

@@ -123,2 +124,6 @@ class Thingy extends EventTarget {

// DFU = Device Firmware Update
this.DFU_UUID = "0000fe59-0000-1000-8000-00805f9b34fb";
this.DFU_CTRL_POINT_UUID = "8ec90003-f315-4f60-9fb8-838830daea50";
this.serviceUUIDs = [

@@ -131,2 +136,3 @@ "battery_service",

this.TSS_UUID,
this.DFU_UUID,
];

@@ -167,2 +173,3 @@

this.battery = new BatteryService(this);
this.dfucontrolpoint = new DFUControlPointService(this);
}

@@ -169,0 +176,0 @@

{
"name": "thingy52_web_bluetooth",
"version": "1.4.1",
"version": "1.5.0",
"description": "API for connecting to and interacting with Nordic Semiconductor's Thingy:52 in the browser",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -10,3 +10,3 @@ # Nordic Thingy:52 for Web Bluetooth

This is work in progress, and for now this repository will help you connect to a Thingy:52 and access all services and characteristics except for speaker, microphone, MTU (Maximum Transmission Unit), and DFU (Device Firmware Upgrade):
This is work in progress, and for now this repository will help you connect to a Thingy:52 and access all services and characteristics except for MTU (Maximum Transmission Unit):

@@ -16,8 +16,8 @@ ### Get started

- Clone or download this repository.
- If you've used this repository, you can open `index.html` in a supported browser and open the console (ctrl + shift + J or cmd + alt + J).
- If you've used this repository, you can serve `index.html` using any http server. You can then navigate to the server address in a supported browser and open the console (ctrl + shift + J or cmd + alt + J).
- Turn on your Thingy:52.
- Click the "Connect" button found in `index.html`.
- Click the "Connect" button found on the page.
- You can now choose your Thingy:52 and connect to it.
- In the console, you can see the browser connect to the device and discover its services.
- When connected, the Thingy:52 will use the LED breathe feature and the LED will pulsate with RED light.
- When connected, the Thingy:52 will use the LED breathe feature and the LED will pulsate with a RED light.
- In the browser, it will also show the current temperature measured by the device in the HTML element below the connect button.

@@ -125,3 +125,3 @@

| Connection parameters | No | Yes | Yes |
| DFU (in development) | - | - | - |
| DFU | Yes | No | Yes |
| Eddystone url | No | Yes | Yes |

@@ -295,3 +295,7 @@ | Environment configuration | No | Yes | Yes |

In development
- `start` - Starts sending notifications from the DFU control point characteristic
- `stop` - Stops sending notifications from the DFU control point characteristic
- `write` - Writes to the DFU control point characteristic.
- **Parameters**:
- Number - Write the number 1 to put the device in DFU mode, enabling Device Firmware Update. This will disconnect the device and it can be reconnected to with the name 'thingyDfu'. To execute the DFU transfer, an external library such as **[this](https://github.com/thegecko/web-bluetooth-dfu)** can be used.

@@ -298,0 +302,0 @@ ### Eddystone Url

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc