正点原子的SSI一次最大可以传输多少字节

2019-07-21 02:28发布

正点原子的SSI一次最大可以传输多少字节到浏览器?如何增加一次传输的数量?
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
5条回答
lijm201811
2019-07-21 17:46
peng1554 发表于 2019-4-24 16:31
整个没有实测过了

程序如下:
void DATA_Handler(char *pcInsert)
{
        u8 hour,min,sec;
        u16 year,month,date,week;
        u8 i;
       
        year  = calendar.w_year;
        month = calendar.w_month;
        date  = calendar.w_date;
        week  = calendar.week;
       
        hour = calendar.hour;
        min  = calendar.min;
        sec  = calendar.sec;       
for (i=0;i<9;i++)
{       
        *(pcInsert+0+i*33) = '2';
        *(pcInsert+1+i*33) = '0';
        *(pcInsert+2+i*33) = (char)(((year%100)/10) + 0x30);
        *(pcInsert+3+i*33) = (char)((year%10) + 0x30);
        *(pcInsert+4+i*33) = '-';
        *(pcInsert+5+i*33) = (char)((month/10) + 0x30);
        *(pcInsert+6+i*33) = (char)((month%10) + 0x30);
        *(pcInsert+7+i*33) = '-';
        *(pcInsert+8+i*33) = (char)((date/10) + 0x30);
        *(pcInsert+9+i*33) = (char)((date%10) + 0x30);
        *(pcInsert+10+i*33) = ' ';
        *(pcInsert+11+i*33) = 'w';
        *(pcInsert+12+i*33) = 'e';
        *(pcInsert+13+i*33) = 'e';
        *(pcInsert+14+i*33) = 'k';
        *(pcInsert+15+i*33) = ':';
        *(pcInsert+16+i*33) = (char)(week + 0x30);       

        *(pcInsert+17+i*33) = ' ';
        *(pcInsert+18+i*33) = ' ';
        *(pcInsert+19+i*33) =        (char)((hour/10) + 0x30);
        *(pcInsert+20+i*33) = (char)((hour%10) + 0x30);
        *(pcInsert+21+i*33) = ':';
        *(pcInsert+22+i*33) = (char)((min/10) + 0x30);
        *(pcInsert+23+i*33) = (char)((min%10) + 0x30);
        *(pcInsert+24+i*33) = ':';
        *(pcInsert+25+i*33) = (char)((sec/10) + 0x30);
        *(pcInsert+26+i*33) = (char)((sec%10) + 0x30);
        *(pcInsert+27+i*33) = '<';
        *(pcInsert+28+i*33) = 'b';
        *(pcInsert+29+i*33) = 'r';
        *(pcInsert+30+i*33) = ' ';
        *(pcInsert+31+i*33) = '/';
        *(pcInsert+32+i*33) = '>';
}       

       
}

一周热门 更多>