Not directly, as Rule Machine only has actions for GET and POST. However, you can do so with a custom app or driver, including this one:
You could also write a custom driver (or app/driver combo, if needed) directly for the device using similar methods, but something like this should get you started either way.