Does anyone know what format(s) can be used for the IP address with SETTCP?
Can it take the LONG format? (It is not clear at all in BASCOM's help)
I have seen in http://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=630&highlight=settcp
Settcp Mac_adress(1) , Ip_adress(1) , Mask_adress(1) , Gate_adress(1)
Where :
Ip_adress(1) = 100
Ip_adress(2) = 1
Ip_adress(3) = 168
Ip_adress(4) = 192
But I have seen in http://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=11141&highlight=settcp
Settcp Eth_mac(1).eth_mac(2).eth_mac(3).eth_mac(4).eth_mac(5).eth_mac(6) , _
Ip_ , _
Subnetmask_ , _
Gateway_
Where:
Dim Ip_ As long
Ip_ = Maketcp(192 , 168 , 1 , 2)
And both are said to be working!
[b:46e1f8bf38][color=red:46e1f8bf38](BASCOM-AVR version : 2.0.7.6 )[/b:46e1f8bf38][/color:46e1f8bf38]
↧