Hi!
I keep getting Symbol not found errors when I try to get a Hash object.
var hash = Toybox.Cryptography.Hash.initialize({:algorithm => Toybox.Cryptography.HASH_MD5});
Does anyone else have this problem? Working with SDK 3.0.12.
Hi!
I keep getting Symbol not found errors when I try to get a Hash object.
var hash = Toybox.Cryptography.Hash.initialize({:algorithm => Toybox.Cryptography.HASH_MD5});
Does anyone else have this problem? Working with SDK 3.0.12.
Hi Jim!
Thanks for the advice. I've tried the 3.1.3 SDK and it also reports the same error of the symbol not found. On a side note, the debug for the simulator for 3.1.3 doesn't seem to start up for some reason. Which was why I reverted to 3.0.12 actually.
On a side note, the debug for the simulator for 3.1.3 doesn't seem to start up for some reason.
Make sure to file a bug report on this.
var hash = Toybox.Cryptography.Hash.initialize({:algorithm => Toybox.Cryptography.HASH_MD5});
This is not the right syntax to initialize a Hash object. You want
using Toybox.Cryptography;
var hash = new Cryptography.Hash({
:algorithm => Toybox.Cryptography.HASH_MD5
});
That said, there are some devices that don't have support. Basically, all devices that don't have ConnectIQ 3.0 support won't have it. You may need to use a has check to verify it is available.
If you believe that the device you are simulating or testing on should have support, please let us know what device and what firmware version.
Thanks a lot Travis! I completely forgot to review that chapter on Classes for Monkey C.