æ¡å¼µãã¤ãã¼ãã§åå¾å¯è½ã åç´å½¢å¼ã®ãã¤ãã¼ãã«æ¯ã¹ã¦ã éç¥æé ã¨ã©ã¼å¿ç ããµãã¼ãã åç´å½¢å¼ã«ä»¥ä¸ãå¤æ´ã追å ãã¦éç¥ãã±ãããéä¿¡ 1(åºå®ã³ãã³ã 1btyte) å¿çèå¥å(integer 4byte) æå¹æé(UNIXã¿ã¤ã ã¹ã¿ã³ã integer 4byte) æ¡å¼µãã¤ãã¼ããµã³ãã« å®éã®éç¥payloadçæã¯ä»¥ä¸ã®ãããªæãã function get_payload($token_id, $data, $respose ) { //token_idã16é²âãã¤ããªã¸ $deviceToken = pack('H64',$token_id); //ã¨ã©ã¼æã¯ãã®$resposeã«å¯¾ãã¦ã¨ã©ã¼ããã£ãã¨å¿ç $responce_id = pack('N', $respose ); //ã¡ãã»ã¼ã¸ä¿åã¯1é±é $timeout = pack('N', time(
{{#tags}}- {{label}}
{{/tags}}