RealTimeClock

Sven Klomp sven at klomp.de
Thu Mar 19 08:55:08 CET 2009


On Wednesday 18 March 2009 19:22:05 Daniel Willmann wrote:
> Try to escape the quotes like this: \"1237390913\". The problem is that
> the bash already strips them and mdbus will just interpret the number
> as number.

It doesn't helped:
mdbus -s org.freesmartphone.odeviced /org/freesmartphone/Device/RealTimeClock/0 org.freesmartphone.Device.RealTimeClock.SetCurrentTime \"1237390913\"
/org/freesmartphone/Device/RealTimeClock/0: SetCurrentTime failed: org.freedesktop.DBus.Python.TypeError

I do have the same problems with Python:
rtc_interface.SetCurrentTime(1237449035)
ERROR:dbus.connection:Unable to set arguments (1237449035,) according to signature u's': <type 'exceptions.TypeError'>: Expected a string or unicode object

rtc_interface.SetCurrentTime(str(1237449035))
TypeError: a float is required

rtc_interface.SetCurrentTime(str(1237449035.12))
TypeError: a float is required


Sven 



More information about the devel mailing list