Using Network Lock Servlet with TiniHttpServlet0.12

  1. Modify files extracted from TiniHttpServer012.zip to remove references to the old iButton classes and add references to new 1-Wire API.
  2. Download NetworkLockServlet source files from ftp://ftp.dalsemi.com/pub/auto_id/temp/NetworkLock.zip. Extract the files to a temporary directory and copy them to:
    NetworkLockServlet.java -> TiniHttpServer\src
    LockCircuit.java        -> TiniHttpServer\src
    LockMonitorThread.java  -> TiniHttpServer\src
    
    buildHttp.bat           -> TiniHttpServer
    
    NetworkLock.html        -> TiniHttpServer\tini\docs
    NetworkLockCommand.html -> TiniHttpServer\tini\docs
    NetworkLockReadMe.html  -> TiniHttpServer\tini\docs
    THS0.12setup.html       -> TiniHttpServer\tini\docs
    THS0.14setup.html       -> TiniHttpServer\tini\docs
    
    NetworkLock.props       -> TiniHttpServer\tini\etc
    
  3. Make changes to the following files extracted from NetworkLock.zip:
  4. Recompile TiniHttpServer.tini with compile.bat.
  5. Convert to .tini format with buildHttp.bat:
    set HTTP_DIR=c:\TiniHttpServer0.12
    set TINI_DIR=c:\tini1.02
    java -classpath %TINI_DIR%\bin\tini.jar;%CLASSPATH% BuildDependency  
    -f %HTTP_DIR%\classes.tini -o %HTTP_DIR%\tini\bin\TiniHttpServer.tini 
    -d %TINI_DIR%\bin\tini.db -m com.smartsc.http.HttpServer 
    -p %TINI_DIR%\bin\owapi_dependencies_TINI_001.jar 
    -add OneWireContainer12;OneWireContainer1F
    
    *Note: the "java -classpath .... OneWireContainer1F" is all one line.

  6. Download the new TiniHttpServer.tini with deploy.bat.