I am a GNU Radio beginner, and I use the following code to make the block's output-port output a pmt
data:
message_port_register_out(pmt::mp("fer"));
...
int d_pdu=cnt_int;
pmt::pmt_t pdu = pmt::mp(d_pdu);
message_port_pub(pmt::mp("fer"),pdu);
And the "QT GUI Message Edit Box" only can show me that date in type 'int
'. But I can't use it as an integer data. How to change its data type? Is there a block that can make pmt
into int
?