필터 지우기
필터 지우기

MATLAB R2019b has problems with HTTP POST requests

조회 수: 1 (최근 30일)
JEROME GARCIA
JEROME GARCIA 2019년 9월 28일
This problem is encountered when communicating with a web server on an Arduino card
Here are some initializing parameters:
url='http://192.168.1.23';
data=struct('recalage','activé','x',0.55);
a=jsonencode(data);
then , with R2019a : webwrite(url,urlencode(a)) returns a correct answer
'<!DOCTYPE HTML>
<head>
<meta charset="utf-8">
</head>
<html>
Arguments GET ou POST: {"recalage":"activé","x":0.55}
Arguments décodés: recalage=activé ,x=0.5500
</html>
'
while, with R2019b, the answer with the same board is:
<!DOCTYPE HTML>
<head>
<meta charset="utf-8">
</head>
<html>
Arguments GET ou POST: ���������������������������������������������������������
</html>
'
the reason is that the function client.read() on arduino returns no data when reading the POST data when the request is coming grom R2019b

답변 (0개)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!