rpi-obex-monitor
A Raspberry Pi module for detecting when a file has been uploaded using Bluetooth (by OBEX).
Installation
$ npm install rpi-obex-monitor --save
Usage
var Monitor = ;var monitor = ;var Path = ; monitor; // Enable Bluetooth discovery for 30 minutes.// Call disableBluetooth() to stopmonitor; // Start monitoring. Stop by calling stop()monitorstart;
Set up Bluetooth
Make sure Bluetooth is up and running.
$ sudo bluetoothctl
Enter the following commands
power on
agent NoInputNoOutput
default-agent
pairable on
exit
Follow this link to set up Bluetooth file transfer. https://www.raspberrypi.org/forums/viewtopic.php?p=963751#p963751 It will make your Raspberry Pi accept files from your Mac or PC.