Convert lr-wpan-data.cc in python

23 views
Skip to first unread message

Lelio Campanile

unread,
May 24, 2019, 12:59:44 PM5/24/19
to ns-3-users
Hello to everyone,

I'm Lelio Campanile from Università degli Studi della Campania "Luigi Vanvitelli" and I'm starting to study ns3.

I'm trying to use the lr-wpan module and I'm traslating the lr-wpan-data.cc in python. I was able to get everything work but the follow code:

Simulator::ScheduleWithContext (1, Seconds (0.0),
                                  &LrWpanMac::McpsDataRequest,
                                  dev0->GetMac (), params, p0);

that I traslate in

ns.core.Simulator.ScheduleWithContext(1, ns.core.Seconds(0.0),
                                        ns.lr_wpan.LrWpanMac().McpsDataRequest,
                                        dev0.GetMac(), params, p0)

But I get this error:
TypeError: function takes at most 2 arguments (4 given)


Could anyone help me?

Thanks,
Lelio  
Reply all
Reply to author
Forward
0 new messages