sub_test_fixed_width 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. LD_LIBRARY_PATH=../lib ./mosquitto_sub \
  2. -h test.mosquitto.org \
  3. --retained-only \
  4. --remove-retained \
  5. -t FW/# \
  6. -W 1>/dev/null 2>/dev/null
  7. LD_LIBRARY_PATH=../lib ./mosquitto_pub \
  8. -h test.mosquitto.org \
  9. -D publish content-type "application/json" \
  10. -D publish message-expiry-interval 360000 \
  11. -D publish payload-format-indicator 1 \
  12. -D publish response-topic response-topic \
  13. -m ABCDEFGHIJKLMNOPQRSTUVWXYZ \
  14. -q 2 \
  15. -r \
  16. -t FW/truncate \
  17. -V 5
  18. LD_LIBRARY_PATH=../lib ./mosquitto_pub \
  19. -h test.mosquitto.org \
  20. -D publish content-type "null" \
  21. -D publish message-expiry-interval 3600 \
  22. -D publish payload-format-indicator 1 \
  23. -D publish response-topic r-t \
  24. -m Off \
  25. -q 2 \
  26. -r \
  27. -t FW/expire \
  28. -V 5
  29. LD_LIBRARY_PATH=../lib ./mosquitto_pub \
  30. -h test.mosquitto.org \
  31. -D publish payload-format-indicator 1 \
  32. -D publish response-topic rt \
  33. -m Offline \
  34. -q 2 \
  35. -r \
  36. -t FW/1 \
  37. -V 5
  38. LD_LIBRARY_PATH=../lib ./mosquitto_sub \
  39. -h test.mosquitto.org \
  40. -C 3 \
  41. -F "| %10t | %-10t | %7x | %-7x | %08x | %7X | %-7X | %08X | %8p | %-8p | %3m | %-3m | %03m | %3l | %-3l | %03l | %2F | %-2F | %02F | %5C | %-5C | %5E | %-5E | %05E | %5A | %5R | %-5R |" \
  42. -q 2 \
  43. -t 'FW/#' \
  44. -V 5
  45. echo
  46. LD_LIBRARY_PATH=../lib ./mosquitto_sub \
  47. -h test.mosquitto.org \
  48. -C 3 \
  49. -F "| %10.10t | %.5t | %-10.10t | %7x | %-7x | %08x | %7X | %-7X | %08X | %8p | %-8p | %3m | %-3m | %03m | %3l | %-3l | %03l | %2F | %-2F | %02F | %5C | %-5C | %5E | %-5E | %05E | %5.5A | %5.5R | %-5.5R |" \
  50. -q 2 \
  51. -t 'FW/#' \
  52. -V 5