write method added to OwnetProxy