how to avoid mistaken hyperlink execution from the browser ?
hi ,
i have added hyperlink on webpage click executes url ?waterplant1 appended it, shown below.
but might forget , if reload above url along loading page turn on solenoid water plant.
is there way can remove mistaken link execution browser avoid turning on solenoid ?
one way can think of if arduino replies browser message , browser shows prompt saying "water plant" can't think of way how arduino can send reply browser.
i have added hyperlink on webpage click executes url ?waterplant1 appended it, shown below.
code: [select]
http://192.168.1.156:8025/?waterplant1
but might forget , if reload above url along loading page turn on solenoid water plant.
is there way can remove mistaken link execution browser avoid turning on solenoid ?
one way can think of if arduino replies browser message , browser shows prompt saying "water plant" can't think of way how arduino can send reply browser.

i'm not sure if there way stop because of way internet browsers work.
when load link, presume arduino reads incoming "?waterplant1" command , turns on solenoid set time. if reload page, far script concerned, sending command because loaded link.
your suggestion of "send , receive" connection way fix error.
i suggest sending request, using second link confirmation. eg, send "?waterplant1", send "?waterplant2". should stop accidentally activating it. plus, doing this, won't need arduino respond.
also, please tell how have connected arduino internet (ethernet shield, bluetooth module, wifi module, etc). without information, can little confusing later on if other problems arise.
i hope helps
ps advise against putting ip on forums.
when load link, presume arduino reads incoming "?waterplant1" command , turns on solenoid set time. if reload page, far script concerned, sending command because loaded link.
your suggestion of "send , receive" connection way fix error.
i suggest sending request, using second link confirmation. eg, send "?waterplant1", send "?waterplant2". should stop accidentally activating it. plus, doing this, won't need arduino respond.
also, please tell how have connected arduino internet (ethernet shield, bluetooth module, wifi module, etc). without information, can little confusing later on if other problems arise.
i hope helps
ps advise against putting ip on forums.
Arduino Forum > Using Arduino > Programming Questions > how to avoid mistaken hyperlink execution from the browser ?
arduino
Comments
Post a Comment