Thank you again, I really appreciate your collaboration.
One last question, is there any simple example online, about passing an int value (for example) between two OOT blocks in C++?
I know there is this example in python, but I was wondering if there is simple but complete one in C++.
From reading the previous tutorial, I have set the following in my block2_impl.cc class
set_msg_handler(
pmt::mp("in_port_block2"), // This is the port identifier
boost::bind(&block2_impl::msg_handler_method, this, _1)
);
And then I declare the methon in the block2_impl.h file
void msg_handler_method(pmt::pmt_t msg);
Then, how do I send an int value from block2 to block1 in the general_work function, and how do I retrieve the value in block1 in also the general_work function ?
Thanks!