---
title: "Pixl.js Bluetooth to Ethernet MQTT Bridge"
url: "https://maker.wiznet.io/rena/projects/Pixljs-Bluetooth-to-Ethernet-MQTT-Bridge-r/"
markdown_url: "https://maker.wiznet.io/rena/projects/Pixljs-Bluetooth-to-Ethernet-MQTT-Bridge-r/md"
type: "UCC: User Created Content"
author: "rena"
author_url: "https://maker.wiznet.io/rena/"
original_author: "rena"
original_url: "https://www.espruino.com/Pixl.js+BLE+Ethernet+Bridge"
published: "2019-04-01"
language: "en"
likes: 0
views: 529
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# Pixl.js Bluetooth to Ethernet MQTT Bridge

> Pixl.js Bluetooth to Ethernet MQTT Bridge

Original author: rena (source: https://www.espruino.com/Pixl.js+BLE+Ethernet+Bridge)

## Article

This is just a very simple example of using Puck.js to send received Bluetooth LE advertising packets over MQTT to a server. Just wire up an Arduino WIZnet adaptor?[as shown on this page](https://www.espruino.com/arduino-w5100)?then upload the following code with the?`MQTTSERVER`?variable set to the IP address of a server running a (non-HTTPS) MQTT server. To view the received packets, you can run a command such as this if you have the Mosquitto tools installed on your PC:

```
mosquitto_sub -h 192.168.1.70 -v -t "/advertise"
```

**NOTE:**?This is a simple example and isn't designed to deal with a large volume of advertising packets. To make this more robust you might want to consider adding a whitelist of BLE addresses that will be forwarded.

---

Source: https://maker.wiznet.io/rena/projects/Pixljs-Bluetooth-to-Ethernet-MQTT-Bridge-r/
