mavlink / mavlink2rest

mavlink2rest creates a REST server that provides mavlink information from a mavlink source
MIT License
68 stars 23 forks source link

Multiple Filters on Websocket #100

Closed ericjohnson97 closed 3 months ago

ericjohnson97 commented 3 months ago

Is mavlink to rest setup to accept multiple filters or is it just one message per websocket stream?

I have tried this

"ws://192.168.1.222:6040/ws/mavlink?filter=LOCAL_POSITION_NED,ATTITUDE

but that doesn't seem to work

patrickelectric commented 3 months ago

Is mavlink to rest setup to accept multiple filters or is it just one message per websocket stream?

I have tried this

"ws://192.168.1.222:6040/ws/mavlink?filter=LOCAL_POSITION_NED,ATTITUDE

but that doesn't seem to work

Hi @ericjohnson97, you should be using a regex: "LOCAL_POSITION_NED|ATTITUDE" As explained here: https://github.com/mavlink/mavlink2rest?tab=readme-ov-file#websocket

ericjohnson97 commented 3 months ago

Forgot to respond to this.

Yep it is regex! I need to read more carefully 🤦‍♂️