Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
joetesta
Roku Guru

GetRandomUUID on firmware 6.2?

Hello -

I'm trying GetRandomUUID() on a Roku 3 with version 6.2 build 3672 - this is what I'm getting from debug:

Function Call Operator ( ) attempted on non-function. (runtime error &he0) in pkg:/source/appMain.brs(175)
175: myuuid = GetRandomUUID()


should this work, can anyone tell me what I'm doing wrong?
tyvmia
Joe
aspiring
0 Kudos
2 REPLIES 2
RokuKC
Roku Employee
Roku Employee

Re: GetRandomUUID on firmware 6.2?

GetRandomUUID isn't a global function, but rather a function on an roDeviceInfo object.
0 Kudos
joetesta
Roku Guru

Re: GetRandomUUID on firmware 6.2?

Thanks for the quick reply. I updated it to look like this

di = CreateObject("roDeviceInfo")
myuuid = di.GetRandomUUID()


and it's working -Thanks!
aspiring
0 Kudos