How to give multiple idents in filter in initiation command

Hi,

I am using java language to get ADSB feed. The initiation command is working fine when i give single ident. How to give multiple idents in initiation command in java?

I found in the help document that, we should enclose multiple idents in double quote. But if i use same in java code, getting an exception due to string break.

Kindly help me how to use multiple idents in java initiation command.

Thanks,
Dhanu

You will probably need to use backslash to escape the quotes used within your string.


private static final String initiation_command = "live idents \"N1234 N2345 N4567\" username ***** password *******" + "
";

Alternatively, you can use curly brackets around the nested string:


private static final String initiation_command = "live idents {N1234 N2345 N4567} username ***** password *******" + "
";