Community Record
8
Posts
7
Kudos
0
Solutions
Badges
May 17 2023
7:37 AM
1 Kudo
@noname1 unfortunately not. The workaround is to delay requests by a sufficient amount of time. I'm intently vague on a value as it's by trial-and-error.
... View more
Feb 13 2023
11:29 PM
1 Kudo
I have gone down the path of using an AWS IoT Custom Authorizer, and I'm 99% of the way there. The last thing I'm unable do via the Meraki console is to specify an ALPN [0] value as required by AWS IoT Custom Authorizer protocols. [1], [2], [3]. The following is an example command using `mosquitto_pub` to test that AWS IoT is reachable using only a CA Cert and a Custom Authorizer (no mTLS authorization though CA cert + device cert + device key): mosquitto_pub \
--tls-alpn mqtt \
--cafile AmazonRootCA1.pem \
-h ${IOT_ENDPOINT} \
-p 443 \
-t ${THE_TOPIC} \
-m "{\"msg\": \"hello IoT!\"}" \
-i ${CLIENT_ID} \
-u USER_NAME?x-amz-customauthorizer-name=${AUTHORIZER_NAME} \
-P ${PASSWORD} \
-d The crucial part that I'm unable to do via Meraki Console is the equivalent of `--tls-alpn mqtt`. A successful response looks like: Client ${CLIENT_ID} sending CONNECT
Client ${CLIENT_ID} received CONNACK (0)
Client ${CLIENT_ID} sending PUBLISH (d0, q0, r0, m1, '${THE_TOPIC}', ... (20 bytes))
Client ${CLIENT_ID} sending DISCONNECT I don't know how a big a request that is, but hopefully it can be added as an option soon, if mTLS is not planned to be supported. Links: [0]: https://en.wikipedia.org/wiki/Application-Layer_Protocol_Negotiation [1]: https://docs.aws.amazon.com/iot/latest/developerguide/custom-auth.html#custom-auth-mqtt [2]: https://docs.aws.amazon.com/iot/latest/developerguide/protocols.html [3]: https://aws.amazon.com/blogs/iot/mqtt-with-tls-client-authentication-on-port-443-why-it-is-useful-and-how-it-works/
... View more
Feb 9 2023
6:54 AM
This relates to AWS IoT Core. I'm running into a situation where the bridge-workaround [0] is not optimal any longer. The next step is to look at AWS IoT custom authorizers, but it would be helpful to know whether there are plans from Meraki to support TLS client authentication since there is currently a big push on this kind of authentication. [0]: https://aws.amazon.com/blogs/iot/how-to-bridge-mosquitto-mqtt-broker-to-aws-iot/
... View more
Labels:
- Labels:
-
Other
Nov 13 2022
10:58 PM
OK, I'm not sure I'm on the same page. I'm using the v1 API, calling /devices/:device-id/camera/generateSnapshot, which returns a JSON response indicating the URL from where to fetch the snapshot. The URL looks like https://spn2.meraki.com/stream/jpeg/snapshot/{some-long-string-here}, which is not an api.meraki.url endpoint. Replacing spn2 in this example with the shard, doesn't appear to be valid. In my case, I have never had an issue with the /devices/:device-id/camera/generateSnapshot endpoint.
... View more
Nov 13 2022
10:21 PM
Thank you! I will try and confirm whether that improves the experience.
... View more
Nov 9 2022
12:13 AM
1 Kudo
Documentation: https://developer.cisco.com/meraki/api-latest/#!generate-device-camera-snapshot Endpoint: /devices/{serial}/camera/generateSnapshot I have been trying to build a flow around MQTT events and requesting snapshots.via the API. What troubles me is that accessing the image at the location in the snapshot request's response has rather sporadic results. Sometimes there is an image, sometimes the response has an HTTP/40x or HTTP/50x response. Sometimes I get an image response, then requesting the URL again, one of the error responses. I have never received an HTTP/429 (RateLimit) response and have been trawling the forums in an attempt to find anyone with similar experiences, but no luck as yet. I'm trying to find out if it is a network issue from the camera or a Meraki network issue. Unfortunately, I'm only on the consumer side, so I don't know the specifics of installation and the network on-premises. In the video dashboard, I hardly notice any issues, which makes my experience more frustrating when trying to use the Snapshot API. Update: I am aware of trying to request the resource with a delay, and even with that, I observe the same sporadic behaviour.
... View more
Labels:
- Labels:
-
Other
My Top Kudoed Posts