function transmitEmoji(image, codePoint, duration) {
  let instance = [ 0x00, 0x00, (codePoint >> 24) & 0xff,
                  (codePoint >> 16) & 0xff, (codePoint >> 8) & 0xff,
                  codePoint & 0xff ];

  require('ble_eddystone_uid').advertise(UNICODE_CODE_POINT_ELIDED_UUID,
                                         instance);
  isTransmitting = true;
  drawImage(EMOJIS[emojiIndex][IMAGE_INDEX], true);

  let displayIntervalId = setInterval(toggleImage, BLINK_PERIOD_MILLISECONDS,
                                      image);

  setTimeout(terminateEmoji, duration, displayIntervalId);
}
// blinking the image once per second.
blinking the image once per second.
blinking the image once per second .
function transmitEmoji(image, codePoint, duration) {
  let instance = [ 0x00, 0x00, (codePoint >> 24) & 0xff,
                  (codePoint >> 16) & 0xff, (codePoint >> 8) & 0xff,
                  codePoint & 0xff ];
  require('ble_eddystone_uid').advertise(UNICODE_CODE_POINT_ELIDED_UUID,
                                         instance);
  isTransmitting = true;
  drawImage(EMOJIS[emojiIndex][IMAGE_INDEX], true);
  let displayIntervalId = setInterval(toggleImage, BLINK_PERIOD_MILLISECONDS,
                                      image);
  setTimeout(terminateEmoji, duration, displayIntervalId);
}
function transmitEmoji ( image , codePoint , duration ) { let instance = [ 0x00 , 0x00 , ( codePoint >> 24 ) & 0xff , ( codePoint >> 16 ) & 0xff , ( codePoint >> 8 ) & 0xff , codePoint & 0xff ] ; require ( 'ble_eddystone_uid' ) . advertise ( UNICODE_CODE_POINT_ELIDED_UUID , instance ) ; isTransmitting = true ; drawImage ( EMOJIS [ emojiIndex ] [ IMAGE_INDEX ] , true ) ; let displayIntervalId = setInterval ( toggleImage , BLINK_PERIOD_MILLISECONDS , image ) ; setTimeout ( terminateEmoji , duration , displayIntervalId ) ; }
blinking the image once per second.
blinking the image once per second .