Hi Folks,
I haven’t been able to find a recently active discussion on this topic, so I figured I’d spin up a new thread in the hopes of getting an answer that’s up to date.
My issue is fairly straightforward (as I see it):
- I have a product.
- Each of my customers will have a number of electrons (~= 10 devices), and this set of devices will all be owned by the customer’s particle account.
- All of that customer’s devices are running the same firmware and are members of the same product.
- I want to create web-hooks that will only be triggered by publishes from the devices owned by that customer.
- I want each of the devices owned by that customer to be able to publish messages to only the other devices owned by that customer.
- I want a web-app to do the same as above. (which it looks like is not possible directly, my thoughts on a workaround at the moment are to use one of the customer’s devices as a relay, and have a function call that will trigger that device to do the publish for me?)
- It is critical to the proper operation of the system that events published by one customer are only received by that customer’s webhooks and devices.
I currently have a prototype system running for my first customer which uses the product-level webhooks and public events, but I will be needing to offer support for multiple customers (each with their own set of ~= 10 electrons) in the next few months.
I’ve had a look at some of the contributions by @Dave and @rickkas7. From my reading of the other topics around here, I get the general sense that what I want to do isn’t really possible under the current infrastructure. Does anyone have suggestions on the workaround that will get me closest to the behaviour I want?
Cheers in advance,
DKW