def apply_update(self, value, index):
_log.debug('<STR_LIT>'.format(type(value).__name__, index, value.value))<EOL>builder = asiodnp3.UpdateBuilder()<EOL>builder.Update(value, index)<EOL>update = builder.Build()<EOL>OutstationApplication.get_outstation().Apply(update)<EOL>
Record an opendnp3 data value (Analog, Binary, etc.) in the outstation's database.

    The data value gets sent to the Master as a side-effect.

:param value: An instance of Analog, Binary, or another opendnp3 data value.
:param index: (integer) Index of the data definition in the opendnp3 database.