Although not for Vera hubs,
we built a whole new framework for being able to communicate with anything http…we called it a WiFi Plugin in Ezlo.
would love your feedback on it if possible please?
it should make doing what you are doing much simpler than running Luup code…User simply enters the commands they want in the configuration menu, set a name for this new “Device” (it turns it into a virtual device)…then allows control of this device in MeshBots.
here is some more info on this Ezlo - WiFi device generator plugin is on the Market place