I have used trace() but ... unable to understand, here i am attaching the files....
please have a look at this....
and after running " nrf_print("helloworld");" this one in console ... i am getting error as
in function called from system
Uncaught Error: Field or method "cjarCodeAt" does not already exist, and can't create it on String
at line 4 col 16
c1 = sentence.cjarCodeAt(i);
^
in function "Checksum" called from line 6 col 28
if ( Checksum(c[0],c[1]) ) {
^
in function "handleGPSLine" called from line 7 col 35
handleGPSLine(line, callback);
^
in function called from system
at line 4 col 16
c1 = sentence.cjarCodeAt(i);
^
in function "Checksum" called from line 6 col 28
if ( Checksum(c[0],c[1]) ) {
^
in function "handleGPSLine" called from line 7 col 35
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi Gordon,
I have used trace() but ... unable to understand, here i am attaching the files....
please have a look at this....
and after running " nrf_print("helloworld");" this one in console ... i am getting error as
in function called from system
Uncaught Error: Field or method "cjarCodeAt" does not already exist, and can't create it on String
at line 4 col 16
c1 = sentence.cjarCodeAt(i);
in function "Checksum" called from line 6 col 28
in function "handleGPSLine" called from line 7 col 35
in function called from system
at line 4 col 16
c1 = sentence.cjarCodeAt(i);
in function "Checksum" called from line 6 col 28
in function "handleGPSLine" called from line 7 col 35
in function called from system
1 Attachment