Watchface compiled with 4.2.1 cannot read bodybattery on a real device

As the title, I just compiled my watchface with SDK4.2.1. However some users told me the body battery became in-readable on their real devices. Everything works fine in my simulator.  Do you have similar issues?

  • bingo ! your solution works well !

  • Great, because 4.2.2 didn't help. And it's not just the Body Battery, Stress Level was also not working.

  • So what's the trick? Did you compile for fr265 on 4.1.7 (if yes how?) or you did not compile for fr265 and it works because of the App Migration?

  • all sensorhistory related function will not work

  • It's a hit and miss though. My Venu still has all it's sensory sensors working.

  • Yes. I exported my project with sdk 4.1.7 with monkeybrains.jar. Unexpectedly, it is a workaround.

  • https://github.com/Likenttt/garmin-connect-iq-makefile-demo

    You can try with make package phase. OFC, Export Project in VS Code Command Pallete seem to do the same thing.

  • Hmm, very strange, I was able to simply export the project with 4.1.7 selected and the 265/965 devices included

    But building specifically for a 965 gives this error:

    ERROR: Device 'fr965' requires an SDK version of 4.2.0 or greater to be compiled. The current SDK version is 4.1.7. Please update your SDK using the Connect IQ SDK Manager.

    Now I'm wondering if the 265/965 were simply omitted from the exported project.

  • An iq file is really just a zip file and you can look at the contents.  At the top level is the iq file's manifest.zip and you can see what's all there.  After you upload it to the store, you can also look at "supported devices.

  • Thanks, and... they are there

    <iq:product connectIqVersion="4.2.0" filename="006-B4257-00/crystal-face.prg" id="fr265" minFirmwareVersion="356" partNumber="006-B4257-00" settings="006-B4257-00/006-B4257-00-settings.json" sig="3A419727529B3D26F93FB3B9D5C56B78C29BF5C34634750DBAC99A299FA47B64711CB61D28ABDC9AF015928EF521F09D5D3999C2EF27ADE96E124AFB802CCBA5219A2A4C8EC7F95D0155AA066C91B638624D93012CD1BE17D1552DBEEEC51B2A41134CDA9D6A85E0AF97BA6F332A50F0662D07BDA2D38315C730942003387E8BA74AE586F33217ACD571B83E8E1F40CE6AB23F9636A8A1A7DBA4E8FBCC2D6CC92BACDFB9C2EB0E0D327A5B625943289FAC9C37816654779AE6F7446F368A7A293EE7BDE3FC554DD7E32F4D3E10D604346CB377F09A00783260613C62C6EE335358830151A097C5A3F1919818F93FAC886DD781BC4BFC6D45CB8DB0988F4CD7DBD799416873219DC73F0CA69866917BDFCA13CA56003EBC76EEAC28EFA40FFCC013AC5591E64BCC180E68849FF604C1F179A5E25FE9E1103CA57EC4FDBB61F6069F76AF9713308CACEF149C6A92B43B565826CB9837F33C6ED73831DADA14AFAF98262052443E31B7B2A10EBD583E2EFD6B911627A22D2C73B5826A0B5E5212706BE85755C0EEB5871C9D52498EC3197390A974EDADDEBF2B5A5D21A7F5AECF57C060405431163C6EC7B5B1C3CB25A6AB996671BC8073DDD41470DF5164847B837D98E6734EF0EA0416051A3F65B2F9445BF25B829D91D5605623A8827B2569DE42B9888FB05AF1A44FF767E0B2008BB2B2C22EADAA3DE0CFEA58C56DE91FA1F6" sigFormat="rsa-4096"/>
    <iq:product connectIqVersion="4.2.0" filename="006-B4258-00/crystal-face.prg" id="fr265s" minFirmwareVersion="356" partNumber="006-B4258-00" settings="006-B4258-00/006-B4258-00-settings.json" sig="1C479C0FDF45DD8E1B458FE82DD9F3DE9ED547E2FE18522BA486022322464DD884629228B2742D4412312B0AC7D64C0AD9EA25BC66920C97B93634170FB3223DF6729F36493895B1F844C5135B66478AE52E142B36D42C71537B6A012AAAB22CE1220E950B118EAD300DC5A0EB4C8419329BA26B424D350520A99EEB02E3A52F2D4499F0E11F9418D6B7F571E0783062FC46D96DA4C2EE29413B1B652D19035EC6DF4951D8F9FC79FEC98037509EC0C323257C8B3C3C8B05A00EBA6D024EC09AC2CBE2938210DC0E210E644B21E9B6424E938FAA2EC86C479B105EEDF78246A740A54C03A4627502241FDD2732E0FE464224CAF0EF891BD0192CA492E83E87338D00C4BD1A2EADBF9C30A216EB4C8F6F011EE77830B16222C24DFF7DE41D5FDAF3AF97A5DCFFC42F2958EABECC919654662930561EEA1ED23E43178D9D42CAAFFC6509FD9F0CE32574552F80DD4CA834B219C2E5D7D8C544A3545A57E9A49416196A20211F5093E566D0EB9E0EB8846FAA91A66708DC866AB6F1AEEBFD9CAE9040CE14988B119372D5B8704A09FA8E45E1A6F3EC215A2D4CFC81A1A60F650D9D75F64F4B0BD6403445002B09629BD8ECCA26448A832196A5637CCEC37BB6C00163E5DE9695B0C3F37A57B7D5FD70A51BFE525FFE21C6B954474058E0CE8718B64D681E6627FE441305DA07209C413BAC6ABBA1B6EE2F39F902B653E12037A0B1" sigFormat="rsa-4096"/>
    <iq:product connectIqVersion="4.2.0" filename="006-B4315-00/crystal-face.prg" id="fr965" minFirmwareVersion="356" partNumber="006-B4315-00" settings="006-B4315-00/006-B4315-00-settings.json" sig="4548A9523EB45887F253BFD283201FDF532E579D3B31983C06449065CDCBA457C151630E5608C5AB2631347BD8D14A41F7F5DB749A635C9FD6F40479CBD2A37D0366A0D424308BA6545A4995EA7B18DA115CEB6CA9B56DA04E814AF09719E33CA3572158773FED56806EFC3A894E7EA82CD949FFA8DFC0807F115541352DAD3E78A759D4A781027290201E1660018E1563715CB38A3A479CF244ACEB7B0FEB8AE48A5CC316C617C9E1D72E0DBF29E9C24561AAF3BE8B712D27AFD914DBC248460F5B6D20ABD69DE2EFD553C78E726B13DCA5461A1311A9D2FFA38C109596A4F8C44E55F673B7F2EB5D7B63B45B1E7C9624105732B91C99354F682A8BCD32491ED15438A46DDEAC5E9635143461195DA5D8CF93B9D1670F32E85BEA365A6F7A71F28970941B752D455EFDD9A89EAC09A22CF934F87302173CC7DDAF9F08D8155B86EF3FDFBB761B3956CFF38A8430C03424F681AEB3B0B223D14CAE51D2A543C142739A91A226FC8AC30DAAD4F35B8392A408543DF059C8E9B2DFA8F405EE2E230160FC1ADD5C48ACEC48266154FF52F7E8E29D465DB8C2BC06BF51C2649C6B5A20293D9D30B52C297A3845E5C8572525EFF99D44F4479EC9DCE8B381BD72358262979944EFC19704AE4D9A12BF839620A799EBA03FFCB172C10B357673B6DA52BE5CD9A0D8E7D52FC82542E5A1766D4EB73C1449755392599D33A6A44A8F23E5" sigFormat="rsa-4096"/>