Assert failed when energy source depletes, with following error:
NS_ASSERT failed, cond="m_remainingEnergyJ >= energyToDecreaseJ", +8.450174201s 0 file=/workspace/src/energy/model/basic-energy-source.cc, line=220
NS_FATAL, terminating
How to reproduce:
in examples/lorawan-energy-model-example.cc:
basicSourceHelper.Set("BasicEnergySourceInitialEnergyJ", DoubleValue(10000)); // Energy in J
Change the attribute BasicEnergySourceInitialEnergyJ to be 0 or a very small value. Run the example.
Assert failed when energy source depletes, with following error:
How to reproduce:
in
examples/lorawan-energy-model-example.cc:Change the attribute
BasicEnergySourceInitialEnergyJto be 0 or a very small value. Run the example.