I'd like to be able to activate a relay via Bluetooth from a button on a layout.
Is this possible?
The short answer is possibly, the long answer is definitely much more complicated.
Your first step is going to be figuring out the SDK that the device manufacturer provides with the specifications for activating the device from a remote machine. Assuming it's already paired and you just need to send a command, it may be relatively simple.
From FileMaker, you're almost certainly looking at using a plugin (EG ScriptMaster to execute Java code), or using Insert From URL, Perform Applescript or Send Event to activate some other program on the system that will perform the device action for you.
So yes, it should be possible, but you're more than likely going to have to develop the entire thing yourself.
There are existing plugins for some other connection technologies, like Serial Port and USB (24U is the company that makes those plugins) if there is an alternate, wired option.
Thanks heaps for the detailed response.
It appears that android can do it, but I don't want to move from FM.
Might do some playing around.
Sent from my iPhone
While I'm not actually answering your question, I will just mention this as a possible solution to your problem or similar problems:
This relay has an integrated webserver and can be triggered simply by sending a webviewer to a certain address. Very easy to integrate with a FileMaker solution on any device.
Note: a bluetooth device can be set up as a serial port. Usually when you pair a device like this, you'll see a message that says "There were no supported services found on your device.". When you click continue, you have the option to map a COM port to it. Then any application (or FileMaker plug-in) that talks to Serial ports will see this. These instructions apply to Mac - Windows would likely work in a similar way.
Once you've paired the bluetooth device and set up a serial port, download ZTerm to experiment with connecting and sending/receiving data, and once you've figured it out, there are a variety of ways to integrate with FileMaker, including using plug-ins. AppleScript could probably do it with a "do shell script" command.
Retrieving data ...